Use arrow keys to move, and don't touch the green or the edge. Collect as many apples as you can.
Thanks to Max Wainewright for making 20 GAMES TO CREATE WITH SCRATCH.