<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSEvent/isARepeat",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSEvent(py)ARepeat"
  },
  "title" : "isARepeat"
}
-->

# isARepeat

A Boolean value that indicates whether the key event is a repeat.

```
var isARepeat: Bool { get }
```

## Discussion

Contains <doc://com.apple.documentation/documentation/Swift/true> if the key event is a repeat caused by the user holding the key down; otherwise, <doc://com.apple.documentation/documentation/Swift/false>. Raises an `NSInternalInconsistencyException` if sent to an `NSFlagsChanged` event or other non-key event.

## See Also

[`+  keyEventWithType:location:modifierFlags:timestamp:windowNumber:context:characters:charactersIgnoringModifiers:isARepeat:keyCode:`](/documentation/AppKit/NSEvent/keyEvent(with:location:modifierFlags:timestamp:windowNumber:context:characters:charactersIgnoringModifiers:isARepeat:keyCode:))

Creates and returns a new event object that describes a key event.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)