From a coding perspective it should be possible to create a system that works like your localization.
Instead of shortcut = "F2" it would be shortcut = "KEY_MAPMODE_2". Than you could create a shortcuts.txt (or whatever filetype you prefer) with KEY_MAPMODE_2:0 = "F2" where the number for version implementation could be used to store multiple profiles.