Yes it is possible to do this, perhaps something like this:
local MovementDictionary = {
Keybind = Enum.KeyCode.LeftShift, -- Define the keybind here
}
MovementDictionary["Sprinting"] = {
Begin = function()
if UIS:IsKeyDown(MovementDictionary.Keybind) then
-- Sprinting code here
end
end
}
-- Usage
MovementDictionary["Sprinting"].Begin() -- Call the begin function