Wrong keycode on macOS. How to fix? For some strange reason when I try to type these keys:


Grave =  `  = keycode 50 
Or shift + Grave = tilde = ~ = I don't know the keycode


I get different chars, for the grave I get this = §
and for the tilde I get this: ±

My keyboard is:



My PC is configured right as you can see in the image of the virtual kb: 



I don't have a clue why! Someone how to solve this ?
It sounds like your machine thinks you have an ISO keyboard (which has an extra key to the left of z for grave/tilde) instead of ANSI. Some possible fixes are at

http://m10lmac.blogspot.com/2009/12/fixing-keyboard-type-problems.html