Switch Focus Between 3D Text Buttons By Using Keyboard

Hi!

I have a few 3D buttons in my menu which I would want to access by using the keyboard’s arrow keys.
I know this is possible with GUI buttons, by using the FocusControl function, but I can’t find any information about how to do this with 3D text objects. How can I switch the focus of multiple 3D buttons with my arrowkeys?

Alternatively, it could also be that the keyboard actually moves the mouse to hover over the different buttons, but how do I make the mouse move between the buttons by using the arrowkeys?

Any help would be much appreciated!

Edit: I’m using Javascript.

Lots and lots of work.

Create an input manager that handles arrow keys and focus. Make every control have some index value/ or set references for what to switch to given a certain input.
When arrow receiving input, see if the focused control has another control defined for that input, if so, set focus to that control.
Sounds easy, but GUI’s tend to find themselves getting very complicated very quickly.

Use a third party library. Making your own GUI library always goes something like this “Huh, this feature is missing, well I can add it in an hour or two, so it doesn’t make any sense to buy a library just for that.” Six months later you’ll realize that you’ve spent hundreds of hours on your library and you still don’t have all the features you need.