wait

This simple statement causes program execution to stop and wait for user input events.  When the user interacts with a window or other control owned by the program and generates an event, program execution resumes at the event handler appropriate for their interaction.

