Workshop › Bomberman-style Arena › Step 28 of 42
When the game is over, a dark see-through panel says Game over, and Enter starts again.
```js
} else if (event.key === 'Enter' && state !== 'playing') reset()
if (state !== 'playing') {
ctx.fillStyle = 'rgba(15, 23, 42, 0.85)'
ctx.fillRect(40, 150, canvas.width - 80, 90)
ctx.fillStyle = 'white'
ctx.textAlign = 'center'
ctx.font = 'bold 24px sans-serif'
ctx.fillText('Game over', canvas.width / 2, 190)
ctx.font = '16px sans-serif'
ctx.fillText('Press Enter to play again', canvas.width / 2, 222)
}
```reset() only when the game is not being played.rgba(15, 23, 42, 0.85) is dark blue at 85%: the arena still shows faintly behind the panel.textAlign = 'center' makes x the middle of the text; canvas.width / 2 centers it.keydown listener, after the Space block's }, add the Enter line.draw, under the hearts, write the panel.Skills: Drawing on a canvas, Keyboard and mouse input