keypress changed to keydown