Keyboard.ControlKey

From Xojo Documentation

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

Supported for all project types and targets.

If True, the Control key was depressed when the current method or event handler began.

Example

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

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