The LazyBoy Library Manual - KeyShiftState

Part of the Keyboard group.

%imacro KeyShiftState 1
Prefers: AX

Return current keyboard control key shift status.

Keyboard shift status flags:

kbRightShiftRight shift key pressed
kbLeftShiftLeft shift key pressed
kbCtrlEither Control key pressed
kbAltEither Alt key pressed
kbScrollLockScroll lock active
kbNumLockKeypad Number lock active
kbCapsLockCaps lock active
kbInsertModeInsert mode active

Enhanced keyboard shift status flags:

kbLeftCtrlLeft Control key pressed
kbLeftAltLeft Alt key pressed
kbRightCtrlRight Control key pressed
kbRightAltRight Alt key pressed
kbScrollLockPScroll lock pressed
kbNumLockPKeypad Number lock pressed
kbCapsLockPCaps lock pressed
kbSysReqPSystem Request pressed

Example:

    KeyShiftState ax    ; return current keyboard shift state

See also: KeyRead.