If the game freezes, just click inside it (games can get unresponsive if you click elsewhere on the page).
There's a castle on the hill, but it'll be a long time before you get there. Get serious about your sword training, grasshopper!
Arrow keys to move.
Z to attack.
X to jump.