--- id: keyboardKey title: keyboardKey --- # Interface: keyboardKey Defined in: [user-event/keyboard/types.ts:8](https://github.com/crutchcorn/cli-testing-library/blob/main/packages/cli-testing-library/src/user-event/keyboard/types.ts#L8) ## Properties ### code? ```ts optional code?: string; ``` Defined in: [user-event/keyboard/types.ts:10](https://github.com/crutchcorn/cli-testing-library/blob/main/packages/cli-testing-library/src/user-event/keyboard/types.ts#L10) Named key descriptor, such as `Enter` or `ArrowLeft` *** ### hex? ```ts optional hex?: string; ``` Defined in: [user-event/keyboard/types.ts:12](https://github.com/crutchcorn/cli-testing-library/blob/main/packages/cli-testing-library/src/user-event/keyboard/types.ts#L12) String written to stdin (historically named `hex`)