fixed keypress to keydown