title: Get Key Value of Key Pressed with javascriiipt
body: <p><strong>I don't find a way to print the numeric value of keypressed.</strong></p>
  <pre><code>    window.addEventListener('keydown',e =&gt; {
          if(e.keyCode &gt;=65 &amp;&amp; e.keyCode &lt;=90){
          console.log('Yeap letter is pressd');
      
      })
  </code></pre>
  <p>I Have a to run a condition to print only numeric value from keyPressed. But find out keyCode is been deprecated. I only find out <code>e.code</code> and <code>e.key</code> but they ddn't work as per my requirement to print the numeric value of letter.
  <strong>I want to check if the pressed key is letter or print the ASCII value of pressed letter</strong></p>