The pause command without arguments suspends command script execution. During the resulting pause, pressing the End or Esc key will abort script execution, whereas pressing any other key will resume execution. The end keyword indicates aborting immediately, as if the End key had been pressed.
Alternatively (without use of the pause command), command script execution can be paused/resumed by pressing Shift-Esc or aborted by pressing Esc.
The pause will not be included in any movie that is being recorded, because no new frames are drawn during that time; to generate pauses in a movie, wait should be used instead.
See also: sleep