Implemented rudimentary charCode to be returned by keydown event.

Added a basic implementation of charCode to return for keydown events, as long as they are broken in DOM.