Keyboard.AsyncControlKey

From Xojo Documentation

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

Supported for all project types and targets.

If True, the Control key is depressed.

Example

This example detects whether the Control key is depressed.

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