title: How can I test keydown events in Jasmine with specific keyCode on Angular2+
body: <p>In my application I have an <code>&lt;input&gt;</code> field on which I want to trigger keydown events.</p>
  
  <h2>My Setup</h2>
  
  <ul>
  <li>Karma v1.7.1 test runner</li>
  <li>Chrome browser running the tests</li>
  <li>Angular 5</li>
  </ul>
  
  <p>How can I do this?</p>