This is to solve an issue where you use a non-apple european keyboard with the US keyboard layout in macOS where the Tilde key is in the wrong place.
This is the process for the Logitec MX Keys Mini
- Connect the keyboard (bluetooth)
- Make sure the keyboard is in PC mode (hold fn + p for 3 seconds)
- Go through the keyboard wizard and at the end select the European ISO... layout
- Switch the keyboard to Mac mode (hold fn + o for 3 seconds)
- Tilde should work
If this doesn't work:
- delete /Library/Preferences/com.apple.keyboardtype.plist
- reboot
- try above again
Hint: if you have Logi Options+ installed, you need to go to the keyboard settings and uncheck “Always keep keyboard in Mac layout” in order to be able to switch between PC mode and Mac mode. In won’t work otherwise.