title: dispatchEvent doesn't work for Enter > Tab simulation
body: <p>I want to fire a <code>Tab</code> keyboard event when <code>Enter</code> is pressed.</p>
  <p>What am I doing wrong? I followed <a href="https://stackoverflow.com/questions/596481/is-it-possible-to-simulate-key-press-events-programmatically">this explanation</a>.</p>
  <pre class="lang-js prettyprint-override"><code>function enterToTab(e) {
      if (e.key == &quot;Enter&quot;) {
          console.log(e.key);
          e.target.dispatchEvent(new KeyboardEvent(&quot;keydown&quot;, { key: &quot;Tab&quot; }));
      }
  }
  </code></pre>