If the game freezes, just click inside it (games can get unresponsive if you click elsewhere on the page).
This is little easier then the real thing. Get 4 balls or more of the same color to touch each other.
Left / Right Arrow Keys - Move the pieces.
Up Arrow Key - Rotate.
Down Arrow Keys - Drop.