Change keypress to keydown event for Chrome