Workarounds for the non working tilde ~ shortcut on non US keyboard (Win)
As there are several posts/users with the same problem, i'm posting here how i've solve this for myself as i was looking how to switch my paint brush into eraser mode in Photoshop with the missing ~ tilde shorcut on azerty. This should work for illustrator or any other software :
Workaround 1 : change your keyboard language to English United States, then the ² key (french keyboard here) will work as the ` key, which is the `~ key, aka tilde ~ shortcut. You can also change language per application in advanced keyboard parameter, then you have to change language once for every app you use (win+space) then it will remember it. So you can work in qwerty US photoshop and azerty FR (or other) for the rest without switching every time.
Workaround 2 (Win 11 & 10, and some older versions) : keeping whatever keyboard language, remap just one key to the US tilde ~ key (which is `~ but output ` as mentionned before) using Microsoft Keyboard Layout Creator (on official microsoft website).
Steps : Start MKLC, load your existing keyboard language from the list, remap the key you want by clicking on it, then All... then change <key> to U+0060 (which is the unicode for ` ). Project>properties, rename (name of dll, customize it so it wont be the same as one already used (usually kbd followed by language letter like kbdfr or kbdus), description is the way it will show in windows (ex : Français - Custom Photoshop)(cannot edit the name it will show in windows). Validate layout, test it, then "Build dll and setup package", open created folder, run the intall exe (from which you can also uninstall or repair if needed), then restart or just log out windows, log back in, change to your newly created keyboard layout (win+space) et voilà!!! works great, my ² key works now as the tilde shortcut and my layout is still french azerty !
And you can remap (more or less) any key you want with symbols and other not available in your language, also with combinaison of shift alt ctrl ! You can use charmap.exe (included in windows, aka character map / table des caractères) to find any of them and their unicode, so you can mix multiple character in one layout, crazy !
Hope it will work for you too !
(but sadly workaround 2 does not work with tourbox, seems that it doesn't share keyboard layout with windows but uses pre saved layouts, so i'm still waiting for a proper fix...)
edit : I've made it work with tourbox ! the problem was that ` was on two keys, the one i created, and the original one which is a dead altgr key. So by removing this one in MKLC i can now use that damn shortcut with tourbox/azerty layout, it's perfect, but i've lost hours. Hope it will be usefull
