update keypress