How can I create a Continue command?

So I want to create a command that when is run halts the progression of text, untill the player clicks a command like labeled Continue. How do I do that?


wait {
  // Do the stuff in this block of code after the player clicks continue or presses any key.
}

And that's all you have to do. The 'Continue' link will automatically appear.


Also, so you don't go crazy:

msg ("This will print before the continue link prints.")
wait {
 msg ("This will print after the player clicks continue or presses any key.")
}
msg ("This will print after the continue link is shown, but before the game is paused.")