Fix for chrome <-> firefox interoperability: Firefox does not use charCode for key like enter/dot/etc, Chrome always sets the charcode