isControlPressed property

bool isControlPressed

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

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

Implementation

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