Fix errors on render.

 * Change from keypress to keydown so key events work in Chrome.