title: Jquery: click to trigger a keydown event
body: <p>How can I trigger a keydown event when a button is clicked?</p>
  
  <pre><code>var e = jQuery.Event("keydown");
      e.which = 122; // # Some key code value
  
      $('.button-fullscreen').click(function(){
          $(window).trigger(e);
          return false;
      });
  </code></pre>
  
  <p>I want to trigger the key <strong>F11</strong> on the keyboard when the button is clicked. Is it possible?</p>