I need a dialog with 4 variables.

Serial: (10)
Controle1 (5)
Controle2 (5)
Controle3 (5)

I use a edit data dialog and that works fine but the user need to fill in a 10 digit serial and then the next entry should be selected. After inserting 5 digits the next entry should be selected and so on.

Any suggestions?