Your goal is to try to catch the apple. To move the basket left press the left arrow. To move right press the right arrow. The game is over when a ghost pops up.
I used the how to make a catch game tutorial from the scratch team.