Cross platform keycode conversion