Use up and down arrow keys. Avoid doughnuts. Avoid watermelons. Eat cheesy puffs.
This is a sidescroller example for my 5th grade class.