Arrows - Move.
Space - Use Key/Open Door/Flip Switch.
To complete a level, get to the Exit (yellow door). To pick up keys, walk past them.
Hint: Changing something in one world can affect the other world in a different way.
If the game freezes, just click inside it (games can get unresponsive if you click elsewhere on the page).