---
title: GCKeyboardValueChangedHandler
framework: gamecontroller
role: symbol
role_heading: Type Alias
path: gamecontroller/gckeyboardvaluechangedhandler
---

# GCKeyboardValueChangedHandler

The signature for the block that the keyboard input profile calls when a key value changes.

## Declaration

```swift
typealias GCKeyboardValueChangedHandler = (GCKeyboardInput, GCControllerButtonInput, GCKeyCode, Bool) -> Void
```

## Parameters

- `keyboard`: The keyboard controller profile for the physical keyboard.
- `key`: The element for the key that changes.
- `keyCode`: The code for the key that changes.
- `pressed`: doc://com.apple.documentation/documentation/Swift/true if the user presses the key at the time the change occurs; otherwise, doc://com.apple.documentation/documentation/Swift/false.

## See Also

### Getting Change Information

- [keyChangedHandler](gamecontroller/gckeyboardinput/keychangedhandler.md)
