title: Stop keypress popup inside input fields
body: <p>I'm trying to create a search modal, when user press <kbd>s</kbd>, it will run a search box. It works, but two problems:</p>
  
  <ol>
  <li>When modal is loaded, if user press <kbd>s</kbd> again, it will override and load again the modal box.</li>
  <li>Modal shouldn't be loaded within textarea or input fields when pressing <kbd>S</kbd>.</li>
  </ol>
  
  <pre class="lang-js prettyprint-override"><code>$("body").bind('keyup', function(event) { 
      if (event.which == 83) {
          $('#search-modal').show();
      }
  });
  </code></pre>