You fire by pressing the Control key on your keyboard.
Hold it down for continuous fire rather than tapping, since most of the encounters in the game involve enemies arriving in numbers. Keeping movement separate from shooting is the main thing to get comfortable with, as standing still while firing is the fastest way to take damage.
If Control does not respond, click inside the game window first so the browser gives it keyboard focus, and check that nothing else on your system is bound to the same key.