JSFiddle - React, Tailwind, and code Playground

HTML

<input id="mytext" />

<a tabindex="0">Next Control</a>

<button>OK</button>

JavaScript

$(document).ready(function(){
    $('#mytext').keyup(function(e){
        var code = (e.keyCode ? e.keyCode : e.which);
        if(code == 13) {
            var tabables = $("*[tabindex != '-1']:visible");
            var index = tabables.index(this);
            tabables.eq(index + 1).focus();
        }        
    });
});