Firefoxの場合
eventではなくeを使うのがみそ。
また、e.keyCodeとe.charCodeがある。IMEを効かせていると取れる値が違うので注意。
<script type="text/javascript"> document.onkeypress = key_Press function key_Press(e){ keycode = e.which; alert(keycode); keychar = String.fromCharCode(keycode); alert(keychar); } </script>