Since this took me a wee while to figure out, I thought I'd post it as an example.
The attached .cap allows you to fly an Asteroids fighter around and implements the "frictionless" behavior you see in Asteroids.
UP = Accelerate
RIGHT = Rotate clockwise
LEFT = Rotate counter clockwise
Develop games in your browser. Powerful, performant & highly capable.