isControlPressed property

bool isControlPressed

Returns true if a CTRL modifier key is pressed, regardless of which side of the keyboard it is on.

Use isKeyPressed if you need to know which control key was pressed.

Implementation

bool get isControlPressed {
  return isKeyPressed(LogicalKeyboardKey.controlLeft) || isKeyPressed(LogicalKeyboardKey.controlRight);
}