Use the arrow keys to move.
Spikes kill you.
You lose health over time as well. Jump to new platforms to replenish your health.
If you want to see how this game was made, just search for it in the StencylForge. The coding is fully commented so that you can learn to make a game like this yourself :).