Switch between textfields with arrow keys

I have 3 textfields that I’d be able to switch between using the <up> and <down> arrow keys.

I can set the focus to the first textfield using focusManager.setFocus(textfield1) but after that I’m lost.