diff --git a/script.js b/script.js index 03e5ce6..8279979 100644 --- a/script.js +++ b/script.js @@ -276,6 +276,9 @@ async function startGame(gameID) { document.body.addEventListener("keydown", (ev) => { if(["ArrowDown", "ArrowLeft", "ArrowRight", "ArrowUp"].includes(ev.key)) key = ev.key; + + if(ev.key == "p") + alert("Game paused. Close this dialog to resume"); }); // Automatically generate new map element if required