Keyboard.AsyncAltKey

From Xojo Documentation

Read-Only Property (As Boolean )
BooleanValue = aKeyboard.AsyncAltKey

New in 2005r1

Supported for all project types and targets.

If True, the Alt key (Windows and Linux) or Option key (MacOS) is depressed.

Example

This example detects whether the Alt/Option key is depressed.

If Keyboard.AsyncAltKey Then
// handle the keyboard event here....
MessageBox("keyboard event detected...")
End If