# KeyIdentity

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

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

The key name and physical code of one key press.

## Properties

### code

```ts
code: string;
```

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

***

### key

```ts
key: string;
```

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