If the game freezes, just click inside it (games can get unresponsive if you click elsewhere on the page).
Sonic is being attacked by bats and other birds in his yard, dodge what they throw and kill them by throwing apples but without letting them fall on you.
Left / Right Arrow Keys - Run.
Up Arrow Key - Jump.
Spacebar - Throw an apple.