JSFiddle - React, Tailwind, and code Playground

HTML

<input id="Text1" type="text" />
<input id="Text2" type="text" />

JavaScript

document.getElementById('Text1').onkeypress = function (e) {
    if (e.which === 13) {
        document.getElementById("Text2").focus();
        return false;
    }
};