---
title: GCKeyboard
framework: gamecontroller
role: symbol
role_heading: Class
path: gamecontroller/gckeyboard
---

# GCKeyboard

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

## Declaration

```swift
class GCKeyboard
```

## Overview

Overview To get the keyboard object and its input values, register for the GCKeyboardDidConnect (Swift) or GCKeyboardDidConnectNotification (Objective-C) notification for when a keyboard connects to the device, or use the coalesced class property. Then get the input values from the keyboard object’s keyboardInput controller profile.

## Topics

### Discovering keyboards

- [coalesced](gamecontroller/gckeyboard/coalesced.md)
- [GCKeyboardDidConnect](foundation/nsnotification/name-swift.struct/gckeyboarddidconnect.md)
- [GCKeyboardDidDisconnect](foundation/nsnotification/name-swift.struct/gckeyboarddiddisconnect.md)

### Getting input values

- [keyboardInput](gamecontroller/gckeyboard/keyboardinput.md)

### Structures

- [GCKeyboard.DidConnectMessage](gamecontroller/gckeyboard/didconnectmessage.md)
- [GCKeyboard.DidDisconnectMessage](gamecontroller/gckeyboard/diddisconnectmessage.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [GCDevice](gamecontroller/gcdevice.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Game controllers

- [Supporting Game Controllers](gamecontroller/supporting-game-controllers.md)
- [Letting players use their second-generation Siri Remote as a game controller](gamecontroller/letting-players-use-their-second-generation-siri-remote-as-a-game-controller.md)
- [Discovering and tracking spatial game controllers and styli](gamecontroller/discovering-and-tracking-spatial-game-controllers-and-styli.md)
- [GCDevice](gamecontroller/gcdevice.md)
- [GCController](gamecontroller/gccontroller.md)
- [GCRacingWheel](gamecontroller/gcracingwheel.md)
- [GCMouse](gamecontroller/gcmouse.md)
- [GCStylus](gamecontroller/gcstylus.md)
