Workshop › Endless Runner › Step 17 of 19
To duck, we need to know whether the down arrow is held right now, not just when it was pressed. A keys object
remembers every key that is down.
```js
const keys = {}
keys[event.key] = true
keys[event.key] = false
```keys starts empty. keys[event.key] = true stores a field named after the key, like keys.ArrowDown.undefined, which counts as false.best, write const keys = {}.keydown and keyup listeners.Skills: Keyboard and mouse input