Pause the game until key pressed

Hello JGO community! newb here.

I’m using LWJGL to create a small game that should have the ability the be paused (preferably by ESC key) and unpaused (the same way).
I’m guessing I could do it with threads wait/notify but I was hoping there would be an easier method.

thanks,
B.