Left/Right - Move.
Space - Jump.
Avoid the monsters and pick up all the keys to unlock the door to the next level. Pick up clocks for extra time, and other items for bonus points.
If the game freezes, just click inside it (games can get unresponsive if you click elsewhere on the page).