---
title: keyChangedHandler
framework: gamecontroller
role: symbol
role_heading: Instance Property
path: gamecontroller/gckeyboardinput/keychangedhandler
---

# keyChangedHandler

The block that the profile calls when the user presses a key.

## Declaration

```swift
var keyChangedHandler: GCKeyboardValueChangedHandler? { get set }
```

## Discussion

Discussion If multiple keys change values at the same time, the profile calls this block once for each key that changes.

## See Also

### Getting Change Information

- [GCKeyboardValueChangedHandler](gamecontroller/gckeyboardvaluechangedhandler.md)
