Fix keyboard key codes with shift pressed.