or for a quick pause try: waitkey. it waits, as the name suggests, for a key to be pressed. Also, mousewait. Note: The game will be completely stopped until you press a key or click the mouse.
Soja's example is the right way to go if you want a pause screen or something similar.
Soja's example is the right way to go if you want a pause screen or something similar.