eventctrlKey
event.ctrlKey is a boolean property of input events in web browsers that indicates whether the Control key was pressed when the event occurred. It is available on KeyboardEvent and MouseEvent (and related event interfaces) and is true if the Control key was held down during the event, otherwise false. The property is commonly used to implement keyboard shortcuts such as Ctrl+C or Ctrl+S, as well as modifier-based behavior in mouse interactions.
Cross-platform considerations are important because macOS users typically use the Command key instead of Control. To
Usage notes: The property is evaluated for the duration of the event and reflects the presence of
Common patterns: In a keydown handler, check event.ctrlKey to trigger a shortcut route; combined with other
See also: metaKey, key, and the broader KeyboardEvent and MouseEvent interfaces.