Pause while escaping

I’m trying to hit the escape key in my game and have it take me to a pause menu with quit, resume game, control adjustments, etc.

How do I write the javascript to get back to the action after going through several menus, adjusting settings, everything that anyone would want to do in the middle of the game? Figuring a lot of the stuff out on my own, but I guess this is just a little too advanced for me.

Thanks for any help you can come up with.

Billy

u can check bootcamp demo - when u press esc there - menu pops up

Thanks. I’ll try that