πŸ”Ή 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")