Keyboard.OptionKey

From Xojo Documentation

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

Supported for all project types and targets.

If True, the Option key on Macintosh was depressed when the current method or event handler began.

Example

This example detects whether the Option key was depressed. The code is in the Action event of a Timer.

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