macOS Sierra and (wired) keyboard broken
I resolved all the issues. On the previous version (OS X) I was using Karabiner. On macOS Sierra since it was not working I've installed Karabiner-Elements.

I've deleted all of these, make sure to delete all the file. Rebooted. And now all is working properly.