Workshop › Lunar Lander › Step 14 of 31
The left and right arrows tilt the lander. Angles are in radians: 0.05 per frame, about 3 degrees.
```js
const SPIN = 0.05 // radians per frame
if (keys.ArrowLeft) lander.angle -= SPIN
if (keys.ArrowRight) lander.angle += SPIN
```SPIN every frame: left makes it smaller, right bigger.const FEET write the SPIN constant.update, under the if (state !== 'flying') return line and its empty line, write the two arrow lines.Skills: Keyboard and mouse input
← Remember held keys The engine →