update keydown event