Focus in next input inside in Repeated row

hello, my name is jhonatan and i’m brazilian.
I’m new to appGyver and I’m looking to learn and train in this tool.
I’m trying to create a game, similar to WORDLE. I created an input that repeats itself according to the amount of letters, it’s working perfectly. my problem now is the following. I need that when the person clicks on a letter it is directed to the next input, I tried the “focus input” and it didn’t work(When I press TAB in the web, it works).
I am a beginner, if you can help me I will be very happy