title: AngularJS unit test for keypress event
body: <p>I set up a directive that binds a function for the keydown and keypress events. The directive  sets the focus for an input on a form when a shortcut key is entered. </p>
  
  <pre><code>&lt;input type="text" id=txtField1" focus-key="a" /&gt;
  &lt;input type="text" id=txtField2" focus-key="b" /&gt;
  &lt;input type="text" id=txtField3" focus-key="c" /&gt;
  </code></pre>
  
  <p>Is it possible to trigger the keypress event for unit testing my directives? Thanks in advance for your help. </p>