Firefox does not return the keyCode for key press events. If the keyCode is missing, fall back to the charCode.