# KeyIdentity

<!-- DO NOT EDIT: this page is autogenerated from the type comments -->

Defined in: [key.types.ts:283](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/key.types.ts#L283)

The key name and physical code of one key press.

## Properties

### code

```ts
code: string;
```

Defined in: [key.types.ts:285](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/key.types.ts#L285)

***

### key

```ts
key: string;
```

Defined in: [key.types.ts:284](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/key.types.ts#L284)
