> For the complete documentation index, see [llms.txt](https://hawklib.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hawklib.gitbook.io/docs/elements/window/tabs/keybinds.md).

# KeyBinds

## KeyBind Creation

```luau
local MyKeybind = Tab2:KeyBind("Menu Key", "Toggle menu", "Q", function()
    print("Q key pressed!")
    Window:ToggleUI() --toggle ui function
end)
```

### KeyBind Keys

Set Key

```luau
MyKeybind:SetKey("E")
```
