Tilde support

Apparently the tilde key reports different keyCodes for Windows and OSX.