Added a feature check to decide whether to call event.keyCode or event.which in the navigator keyboard handler