๐Ÿ”น What is it?


๐Ÿ”น How to get it

local ContextActionService = game:GetService("ContextActionService")


๐Ÿ”น Bind a key to do something

local function onEPressed(actionName, inputState, inputObject)
    if inputState == Enum.UserInputState.Begin then
        print("E was pressed!")
    end
end

ContextActionService:BindAction("PrintMessage", onEPressed, false, Enum.KeyCode.E)

Explanation:


๐Ÿ”น Unbind a key

ContextActionService:UnbindAction("PrintMessage")