Can someone help me?
I just wonna have a pause menu, when the user press "esc" the game should be paused and if he press "esc" again, go back to the normal game.
Develop games in your browser. Powerful, performant & highly capable.
There are a lot of tutorials to be found here
https://www.scirra.com/tutorials/646/ad ... me-pausing
https://www.scirra.com/tutorials/634/a- ... pause-menu
https://www.scirra.com/tutorials/837/cr ... use-button
Here's an example that might help you get it working: