Skip to main content
Also has everything from ElementHandle. A keybind picker. Value is the chosen key (Enum.KeyCode, Enum.UserInputType, or nil).

Creation

KeyMode
See KeyMode. Controls when OnCallback reports active.

SetKey

Set the keybind. Pass nil to clear it.

SetMode


OnCallback

Runs cb(active). What active means depends on the mode (e.g. true while held in "onHold").

SetListening

Manually put the picker into “waiting for input” mode. GetValue / SetValue are the bound key.