title: Block key press using javascript
body: <p>This is my code to block key press but I can't block these keys:</p>
  
  <pre><code>{ } | ~
  </code></pre>
  
  <p>How can i add that to my code ?</p>
  
  <pre><code>&lt;html&gt;&lt;head&gt;
  &lt;script&gt;
  function ort(){
  if ((event.keyCode &gt; 32 &amp;&amp; event.keyCode &lt; 48) || (event.keyCode &gt; 57 &amp;&amp; event.keyCode &lt; 65) || (event.keyCode &gt; 90 &amp;&amp; event.keyCode &lt; 97)){event.returnValue = false;}
  }
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;form onSubmit="return false;"&gt;
  &lt;input type="text" onKeyPress="ort()"&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>