ScriptUIExtendScript only
Object

KeyboardState

Reports the active state of the keyboard.

Properties

NameType AccessDescription
Boolean readonly True if the Alt or Option key is pressed.
Boolean readonly True if the Ctrl key is pressed.
String readonly A string containing the name of the currently pressed key, such as "a", or an empty string.
Boolean readonly True if the Cmd key (in Mac OS) or Windows key (in Windows) is pressed.
Boolean readonly True if the Shift key is pressed.

Object of 1

Properties elsewhere that hold a KeyboardState.