This mod makes your options per-gamemode, including your keybinds. This is mostly useful for modpack devs who want one set of keybinds / settings when in survival / adventure, for testing, and another while in creative, for...creating...
Yes, you can use it in your modpack if you want (MIT license).
A list of my curseforge mods can be found here