PHP-775 changed form validation from keydown to keypress.