If the game freezes, just click inside it (games can get unresponsive if you click elsewhere on the page).
Your goal is to destroy the enemy's castle with a canon. Before your fire the cannon you should set up its tangent angel and fire strength.
Arrow up/down- Setup tangent angle.
Arrow left/right- Setup fire strength.
Space bar- Fire.