I have 9 x 9 grid and I want to use the arrow keys to traverse through the board: up arrow to go up, down to go down, right to go right (equivalent to tab), and left to go left (equivalent to shift+tab). I was reading the Focus Subsystem and I stumbled upon the FocusTraversalPolicy. To do this, I would have to make two FocusTraversalPolicy: One to go up and down and another to go right and left. Is it possible for a container to have 2 FocusTraversalPolicy? If I were to do it using only one FocusTraversalPolicy, I would have to know what key is pressed. How would I let the FocusTraversalPolicy know what key is being pressed?
With all that said, I have another question. Am I in the right path? Like would I be better off looking up Key Bindings or something? Thanks in advance!