←/→ move the ship. P turns sharp pixels off and on, S turns the engine's smoothing on and off, and W fills the window (and back).
This canvas is only 160 by 100 pixels; the page stretches it
to fit. Two settings keep pixel art crisp. The page's style
sheet gives the canvas image-rendering: pixelated,
so the browser stretches each pixel into a sharp square instead
of blurring them together (press P to see the
difference). And the engine's smoothing, off here,
decides how images are drawn on the canvas: watch the
turning ship with it on and off.
The engine reads the canvas's size every frame, so the game can change it at any time. Filling the window with W keeps the canvas 100 pixels high, but makes it as wide as the window's shape needs, so the pixels stay square and the view just grows at the sides.
See smoothing and Game coordinates in the manual.