Javascript Pause code not working

In the forums I saw that there was a way to pause a game using scenes, by using the “game.pushScene()” and “game.popScene()” code.

However when I do this, the game can pause, but I can not unpause it. I do not know if I am just coding it wrong, but if someone could help me with this then it would be much appreciated, as I would like to make a custom pause menu for my games.