If the game freezes, just click inside it (games can get unresponsive if you click elsewhere on the page).
Grab the hearts for as fast as you can. Avoid contact with the bird that comes on your way, as it may create a protective sheet for the enemy (bugs) for sometime.
Left / Right Arrow Keys - Move.
Up Arrow Key - Jump.
Spacebar - Attack.