Workshop › Pinball › Step 34 of 42
After game over, Space (or Down) starts a new game: reset() puts everything back.
```js
if (down && state === 'over') reset()
else if (down) launch()
```reset() instead of launch().In key, replace if (down) launch() with the two lines.
Skills: Keyboard and mouse input, Game states
← Balls left and game over Remember the best score →