Press a button and move the joystick

What code are you using now and what is preventing you from doing those things?

Steve