Use the left/right/up arrow keys to move and the space bar to fire.
Space War was one of the first video games ever created, back in 1962 on the PDP-1 at MIT. In 2007 I wrote a JavaScript version using sprites. This version, written in 2016, uses HTML5 Canvas for the graphics and is otherwise similar to the 2007 one.