If you bought a Logitech MX Keys Keyboard (Universal Generation) and you use Windows and MacOS both, you have to read this guide. If you use the normal keyboard mapping of this keyboard with MacOS, you should have noticed that the AltGr key is very inconvenient to use. With this guide you can re-map this key.
If you want use bluetooth connection you must use "remapkeys_bluetooth.sh" file to remap this key. (If you want use bluetooth and you have to unlock the FileVault when you start the Mac, you won't be able to because the keyboard does not natively allow it)
(change user word with your account username)
If you want to use Logitech Unifying Connector, you need to fix the mapping in Windows mode before (use a PC or a VM).
Go back to Mac
(change user word with your account username)
If you need to remap comma in keypad, you must insert "DefaultKeyBinding.dict" file in "/Users/[user]/Library/KeyBindings/".
(change user word with your account username)
The KeyBindings folder may not be present: if so, create it.
Enjoy!