The On keyword is used in these contexts:
On Error Statement
On...GoSub Statement
On...GoTo Statement