The easiest way to add something like this would be a toggleable setting (it's the same principle as the "Fast Weapon Switch" settign in Source games).
Right click is already (supposed to be) a dedicated flag button - not sure why that wouldn't work but likely browser-related? Remapping in-game isn't possible for now, but noted!