If the game freezes, just click inside it (games can get unresponsive if you click elsewhere on the page).
Explore the sidescroller as you pick up items to unlock doors and reveal ladders to keys.
Use arrow keys to move.
Space bar to ope dialog.
Attack the sword.