If the game freezes, just click inside it (games can get unresponsive if you click elsewhere on the page).
Move the mine cart back and forth to sway and grab the gold that is hiding in the ground.
Left / Right Arrow Keys - Move the Cart.
Down Arrow Key - Drop claw.
Up Arrow Key - Pull Claw.