Use the arrow keys to catch and eat the fruit. Don't get close to any of the edges.
All of the inspiration came from the game Jumping.