---
title: "keyUp(with:)"
framework: realitykit
role: symbol
role_heading: Instance Method
path: "realitykit/arview/keyup(with:)"
---

# keyUp(with:)

Informs the view that the user has released a key.

## Declaration

```swift
@MainActor @preconcurrency override dynamic func keyUp(with event: NSEvent)
```

## Parameters

- `event`: An object encapsulating information about the key-up event.

## Discussion

Discussion The view handles the event instead of passing it to the next responder. See NSResponder for more information about the responder chain.

## See Also

### Handling keyboard input

- [acceptsFirstResponder](realitykit/arview/acceptsfirstresponder.md)
- [keyDown(with:)](realitykit/arview/keydown(with:).md)
