If the game freezes, just click inside it (games can get unresponsive if you click elsewhere on the page).
Smash the moles down more than your opponent, but beware lest you fall.
Arrow keys to move. Space bar to smash. Combine the UP Arrow key and Space bar to hit directly above. Combine the Down Arrow key and Space bar to hit directly below.