Use the up arrow key to jump over spikes and gaps, survive as long as you can. It gets faster and faster.
Check out my super mario game: http://scratch.mit.edu/projects/10562230/