In your layout, just set the XML attributes android:imeOptions="actionNext"
for your first three text boxes and android:imeOptions="actionDone"
for the last one.
See: android:imeOptions documentation
Also, there’s a small XML example in the training docs.