Any way to make a menu controllable by keys?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By LurreAllire

I have an VBoxContainer inside an CenterContainer with some labels and I want them to be selectable trough W and S, so you can scroll up and down. Is there a way to focus labels and maybe play some kind of animation?

:bust_in_silhouette: Reply From: camarones

Use Area2D nodes for each button and for a cursor node. This way each button can detect whether the cursor is colliding with it. Make the cursor move up and down using W and S, so each time you press, the cursor jumps up/down to the next button. Once this works, make the cursor invisible and voila!