Bug 890186 - Assign charCodes on key events, r=fabrice