Fix keys in chrome

Neither keypress nor event.key work in chrome :-(

http://stackoverflow.com/questions/6311290/keypress-event-not-working-in-ie-and-chrome-but-working-in-ff/6311439#6311439
https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent.key#Browser_compatibility