Make form with input text

If I’m making a form, and I want my boxes only to be able to have 1 character typed in them, how do I do that?

Also, how do I make it so that if a second character is typed, it goes onto the next text box?