If the game freezes, just click inside it (games can get unresponsive if you click elsewhere on the page).
Jump on bullets and fire your own as you use bullets to reach all the gems on each level.
Use arrow keys to move.
Z to jump.
X to shoot.