title: Block special characters but allow spaces
body: <p>I need to block the special characters in input, but my code in Chrome does not allow typing space between words, in Firefox works normally.</p>
  
  <pre><code>var regex = new RegExp("^[0-9a-zA-Z\b]+$");
  var key = String.fromCharCode(!event.charCode ? event.which: event.charCode);
   if (!regex.test(key)) 
   {
       event.preventDefault();
       return false;
   }
  </code></pre>