Fixed unwanted keypress events when typing into input fields