Use arrow keys to move left and right. When you lose the apple, hover your mouse over it.
This is the first game to the "AI games" series. I'm asking Google AI to give me the code blocks for certain games.