KeybindAPI

A global API containing a function to create new Keybind instances

KeybindAPI.newKeybind

Creates and returns a new Keybind
The name is used in the keybind menu
The key parameter is an identifier for a key,
such as "key.keyboard.r"
The boolean gui indicates whether the keybind should always work,
or if it should only work when you don't have a screen open
Check the docs enum command for all key names
overload 1:
keybinds:newKeybind(name, key)
typings.568216823
Method Property Fluent Description Representation
name accepts a String
key accepts
Return Value a Keybind
overload 2:
keybinds:newKeybind(name, key, gui)
typings.568216823
Method Property Fluent Description Representation
name accepts a String
key accepts
gui accepts a Boolean
Return Value a Keybind

KeybindAPI.getVanillaKey

Gets the id of the key bound to the given action, as a string
Check the docs enum command for all key names and vanilla actions
overload 1:
keybinds:getVanillaKey(id)
Method Property Fluent Description Representation
id accepts a KeyIDs
Return Value a String
a a