It's L to launch the sword, and D to dodge the fireball. Only dodge when the fireball is 20 pixels away or less. It's hilarious and educational at the same time. When you really play the game, tap on the screen within 1 block of the enemy, or use a bow. It costs the bear health to shoot a fireball.