ON Keyword - Different Uses The ON keyword is used in various statements to trap events: Specifies a trap Type of event Enables the trap events on communications port n a keystroke on key n lightpen events less than n notes in music buffer events on joystick trigger n timer events user-defined events Other uses of the ON keyword are: - to enable error handling and specify the error-handling routine - to branch to one of a list of subroutines - to branch to one of a list of line labels