Use the arrow keys or WASD to move and the spacebar to fire where your mouse is pointing.
Thank you to AL SWEIGART for his book "Scratch Programming Playground".