To stop execution at a given event:
stop event-specification
To stop execution now and update displays. Whereas normally the process is continued after the body has executed, the stop command prevents that. This form is only valid within the body of a when:
stop -update
Same as above, but does not update displays:
stop -noupdate