title: How to prevent user from entering specific keys in chrome?
body: <p>I have used following jQuery function to prevent user from entering specific keys,</p>
  
  <pre><code>$('#prod_name_en').keypress(function (e) {
  if (e.key.match(/[!@#]+/))
      {
          e.preventDefault();
      }
  });
  </code></pre>
  
  <p>It is working fine in mozilla but not in chrome.</p>
  
  <p>it is throwing following error, </p>
  
  <blockquote>
    <p>Uncaught TypeError: Cannot read property 'match' of undefined</p>
  </blockquote>
  
  <p>Please help me how to resolve this issue.</p>