ON event - Event trapping statements that indicate the first line of an event-trapping subroutine Syntax ON event GOSUB {linenumber | linelabel} - event is a keyword that identifies the event to trap - linelabel or linenumber is the first line of an event-handling subroutine ON event Statement Type of Event Trapped Characters received at communications port n Keystroke on key n Lightpen activity Less than n notes in background music buffer Activity on joystick trigger n Elapsed time event See Also