# useHotkey

```ts
function useHotkey(
   hotkey, 
   callback, 
   options?): void;
```

Defined in: [useHotkey.ts:11](https://github.com/TanStack/hotkeys/blob/main/packages/octane-hotkeys/src/useHotkey.ts#L11)

Registers one shortcut. Callback and options are refreshed after every commit.

## Parameters

### hotkey

`RegisterableHotkey`

### callback

`HotkeyCallback`

### options?

`HotkeyOptions`

## Returns

`void`
