JSFiddle - React, Tailwind, and code Playground

HTML

<form>
  <input type="text" id="text1" />
  <input type="text" id="text2" />
</form>

JavaScript

$(document).keydown(function(e) {
  e = e || window.event;
  if (e.key === "<") {
    $("#text2").focus();
  } else {
    alert(e.key);
  }
});