---
title: isARepeat
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsevent/isarepeat
---

# isARepeat

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

## Declaration

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

## Discussion

Discussion Contains true if the key event is a repeat caused by the user holding the key down; otherwise, false. Raises an NSInternalInconsistencyException if sent to an NSFlagsChanged event or other non-key event.

## See Also

### Related Documentation

- [keyEvent(with:location:modifierFlags:timestamp:windowNumber:context:characters:charactersIgnoringModifiers:isARepeat:keyCode:)](appkit/nsevent/keyevent(with:location:modifierflags:timestamp:windownumber:context:characters:charactersignoringmodifiers:isarepeat:keycode:).md)

### Getting key event information

- [characters](appkit/nsevent/characters.md)
- [charactersIgnoringModifiers](appkit/nsevent/charactersignoringmodifiers.md)
- [keyCode](appkit/nsevent/keycode.md)
- [characters(byApplyingModifiers:)](appkit/nsevent/characters(byapplyingmodifiers:).md)
- [keyRepeatDelay](appkit/nsevent/keyrepeatdelay.md)
- [keyRepeatInterval](appkit/nsevent/keyrepeatinterval.md)
- [specialKey](appkit/nsevent/specialkey-swift.property.md)
- [Function-Key Unicode Values](appkit/function-key-unicode-values.md)
- [NSEvent.SpecialKey](appkit/nsevent/specialkey-swift.struct.md)
