# KeyIdentity

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

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

The key name and physical code of one key press.

## Properties

### code

```ts
code: string;
```

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

***

### key

```ts
key: string;
```

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