Block and wait for a user keystroke

Listing 6 shows a common trick that is often used to prevent such a thing from happening.

Listing 6. Block and wait for a user keystroke.
  readkey();