Arrows keys - Move.
Space bar - Fire.
Click to choose which unit to launch. Take out the enemies and take over all of their buildings by standing on them until the blue bar fills up. Regain your health by standing on one of your own bases until your health bar is filled.
If the game freezes, just click inside it (games can get unresponsive if you click elsewhere on the page).