JSFiddle - React, Tailwind, and code Playground

by Max Sinev

HTML

<input type="text" tabIndex="0">
<input type="text" tabIndex="1">
<input type="text" tabIndex="2">

JavaScript

var e = new Event("keydown");
  e.key="a";    // just enter the char you want to send 
  e.keyCode=e.key.charCodeAt(0);
  e.which=e.keyCode;
  e.altKey=false;
  e.ctrlKey=true;
  e.shiftKey=false;
  e.metaKey=false;
  e.bubbles=true;
  document.dispatchEvent(e);