If the game freezes, just click inside it (games can get unresponsive if you click elsewhere on the page).
Move and drop the blocks in a way to fill the rows and destroy them.
Left / Right Arrow keys to move.
Up Arrow key to rotate.
Down Arrow key to fast drop.