addbind - EdgeIY/infiniteyield GitHub Wiki
void addbind(<string> cmd, <string> key)
Binds cmd to key key. The value of key should be tostring(Enum.KeyCode.KEY)).
-- Note: This is just a snippet
-- This would add a new bind that toggles swim with the C key.
["Function"] = function(args, speaker)
addbind("toggleswim", tostring(Enum.KeyCode.C))
end