This script change the keyboard map of logitech K780, should work with other logitech keyboards with the same issue. For execute, you can go to download folder of this project and execute with:
python 780_remap.py
Administration privileges are is required for do the modification.
Tested on Ubuntu, elementary os, should work in any other distro Ubuntu based. Not tested but should work in any Debian based distro. For other distros like arch, you can modify the lines 82 and 85 with the path specified of arch.
FOR OTHER KEYBOARD, THE FILE template_99-k780.hwdb works perfectly, DO NOT MODIFY NOTHING OF THIS FILE!