Improve normalization of charCode, fix FF not reporting Enter
Merge pull request #1956 from syranide/ffenter

Improve normalization of charCode, fix FF not reporting Enter