Press right to run forwards. When sonic reachs the edge of the screen then press the red button and then the green flag.