<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameController",
  "identifier" : "/documentation/GameController/GCKeyboard",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Game Controller"
    ],
    "preciseIdentifier" : "c:objc(cs)GCKeyboard"
  },
  "title" : "GCKeyboard"
}
-->

# GCKeyboard

An object that represents a physical keyboard connected to a device.

```
class GCKeyboard
```

## Overview

To get the keyboard object and its input values, register for the <doc://com.apple.documentation/documentation/Foundation/NSNotification/Name-swift.struct/GCKeyboardDidConnect> (Swift) or [`GCKeyboardDidConnectNotification`](/documentation/GameController/GCKeyboardDidConnectNotification) (Objective-C) notification for when a keyboard connects to the device, or use the [`coalesced`](/documentation/GameController/GCKeyboard/coalesced) class property. Then get the input values from the keyboard object’s [`keyboardInput`](/documentation/GameController/GCKeyboard/keyboardInput) controller profile.

## Topics

### Discovering keyboards

[`coalesced`](/documentation/GameController/GCKeyboard/coalesced)

The keyboard currently connected to the device.

  <doc://com.apple.documentation/documentation/Foundation/NSNotification/Name-swift.struct/GCKeyboardDidConnect>

  <doc://com.apple.documentation/documentation/Foundation/NSNotification/Name-swift.struct/GCKeyboardDidDisconnect>

[`GCKeyboardDidConnectNotification`](/documentation/GameController/GCKeyboardDidConnectNotification)

A notification that posts after a keyboard connects to the device.

[`GCKeyboardDidDisconnectNotification`](/documentation/GameController/GCKeyboardDidDisconnectNotification)

A notification that posts after a single keyboard, or the last of multiple keyboards, disconnects from the device.

### Getting input values

[`keyboardInput`](/documentation/GameController/GCKeyboard/keyboardInput)

The controller profile for the keyboard.



---

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)