I have the following javascript code...Here I am using onKeyPress=\"someFunction( )\" in the body tag to get the keyCode of the key that is pressed.
I think Firefox are not caring programmers... and this is the reason why so, In Firefox navigator.appName returns "Netscape". so user can edit his code like,
if(navigator.appName == "Netscape") Key = event.charCode; //or e.which; (standard method) else Key = event.keyCode;