fix #4 keycode probrem