Al final he podido lograr sacarlo con la ayuda de la funcion focus, dejo la solución, ojala salgan asi de rapido siempre los problemas
<input type="text" placeholder="code" maxlength="4" onkeyup="if (this.value.length == this.getAttribute('maxlength')) input2.focus()" />
<input type="text" id="input2" placeholder="code" maxlength="4" onkeyup="if (this.value.length == this.getAttribute('maxlength')) input3.focus()" />
<input type="text" id="input3" placeholder="code" maxlength="4" onkeyup="if (this.value.length == this.getAttribute('maxlength')) " />