0
    <script>
        window.onkeydown=function(e){
            e=e||window.event
            document.getElementById('num').innerHTML=e.keyCode
        }
    </script>