Got you covered: How to set a keybinding to enable/disable action / multiple actions?
For more information, see the wiki Searching the Forum for Answers section.