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
For future reference: I tried this, but when I did the fn + o to go back it wouldn't go back, so I was stuck with the PC mode. I fixed it by completely forgetting the keyboard from my bluetooth preferences and pairing it again. After doing this I got the Mac mode back, and the tilde key was now working, so this did work!