To start use the arrow keys to move, when you see the gym click it. Then click the VS button to start the battle. When your in battle click the screen to attack.