MacOS – Wrong keycode on macOS. How to fix

keyboardmacos

For some strange reason when I try to type these keys:

  1. Grave = ` = keycode 50
  2. 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:

enter image description here

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

enter image description here

I don't have a clue why! Someone how to solve this ?

Best Answer

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