update KeyEvent