> For the complete documentation index, see [llms.txt](https://scripting.breeze.rip/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://scripting.breeze.rip/api/net/minecraft/client/settings/mckeybinding.md).

# MCKeyBinding

Represents a Minecraft KeyBinding, breeze itself uses a different keybind system.

### Properties

#### keyDown

> **keyDown**: `boolean`

If the key is down or not, manipulating this will have effect in-game. However we recommend using our SpoofInputEvent instead!

### Methods

#### getKeyCategory()

> **getKeyCategory**(): `string`

**Returns**

`string`

The minecraft category of the key.

***

#### getKeyCode()

> **getKeyCode**(): `number`

**Returns**

`number`

The lwjgl keycode for the bind, mostly useless.

***

#### getKeyDescription()

> **getKeyDescription**(): `string`

**Returns**

`string`

The minecraft description of the key.

***

#### getRealState()

> **getRealState**(): `boolean`

Gets the real keyboard state of this bind, ignores spoofing breeze modules or other game modifications.

**Returns**

`boolean`

***

#### isPressed()

> **isPressed**(): `boolean`

Checks if the keybind was recently pressed and returns true in that case.

**Returns**

`boolean`

**Remarks**

This pulls presses from minecraft, calling isPressed will make the key be pressed ingame one less time.
