OFF KEY cancels event branches for the specified softkey or all softkeys if not specified. The key-number range is zero through twenty-three. Any KEY events for affected softkeys that have been logged but not yet serviced are canceled. OFF KEY also restores the previous key labels.
Executing OFF KEY within a subprogram disables the ON KEY definitions within the subprogram context. When control is returned to the calling program the ON KEY definitions are re-enabled.