Workshop › Typing Rain › Step 22 of 33
Enter after the game is over starts a new game with reset().
```js
document.addEventListener('keydown', (event) => {
if (state === 'over' && event.key === 'Enter') return reset()
```return reset() starts again and leaves the listener.Write the line at the top of the keydown listener.
Skills: Keyboard and mouse input
← The game over panel Levels →