title: disable keyboard clicks for 3 seconds
body: <p>I have the following code</p>
  
  <pre><code>$(document).ready(function(){
      $(document).keydown(function(e){
          if (e.keyCode == 37) {
                 // do something
          }
          else if(e.keyCode == 39){
            // d something
          }
  
      });
  });
  </code></pre>
  
  <p>I want to prevent the user from using any key for three seconds after pressing right or left.</p>
  
  <p>so basically he can click left or right and he can't do another action for three seconds before taking another one.</p>