Trying to get numbers from keypress document, javascript
<p>it seems simple, but I couldn't figure how to intercept numbers on javascript  from Document DOM</p>

<pre><code>    $(document).keypress(function (e) {
        if (e.keyCode == xx) {
            alert();
        }
    });
</code></pre>
