title: How to trigger a KeyboardEvent in Dart
body: <p>Like I said in the title, I would like to simulate a keyup event in Dart. The problem is that I have not found how create a new KeyboardEvent object.</p>
  
  <p>The only way that I've found is to use the Event(String type) constructor and then dispatch it on window object. But that doesn't work because of my "keyup" handler who takes a KeyboardEvent in parameter. Example:</p>
  
  <pre><code>window.on.keyUp.add((KeyboardEvent e){
   print('keyUp handler');
  });
  KeyboardEvent e = new Event("KeyboardEvent");
  window.on.keyUp.dispatch(e);
  </code></pre>
  
  <p>Is there a way to create and dispatch a KeyBoardEvent to simulate a "keyup" in Dart?</p>
  
  <p>Also, I should mention that I tried too to trigger the event in JavaScript, thanks to js-interop library, but it only fires the JS handlers.</p>