Making library work with Firefox

This library doesn't work at all in Firefox, to fix it I've changed ````event.keyCode```` to ````event.charCode```` (see http://stackoverflow.com/questions/9388071/jquery-keypress-detection-in-firefox) 

This fix now works in chrome and firefox