Use this command to declare a key to monitor. If the user presses this key, Hollywood will Gosub() to the label called ONKEYDOWN with the number as specified in this command.
Key$ is a string representing a key on your keyboard. This can be one of
the following control keys:
The other keys can be accessed by just specifying the character of the key in the string, e.g. "A", "!" or "-".
The following keys cannot be monitored: Alt keys, command keys and the control key.
CreateKeydown(1,"ESC") While(quit=FALSE) WaitEvent Wend End Label(ONKEYDOWN1) quit=TRUE ReturnThe above code waits for the user to press the escape key. Then it quits. A code structure like above is recommended for your applications.