Use ON ACTION blocks in a PROMPT dialog, to execute a sequence of instructions when the user selects the action. This is the preferred solution compared to ON KEY blocks, because ON ACTION blocks use abstract names to control user interaction.

The PROMPT dialog is automatically terminated after ON IDLE, ON TIMER, ON ACTION, or ON KEY block execution.