Using arrow keys to navigate on a UI

I want to make a UI where I can use the arrow keys to select stuff, sort of like the gamepad nextselectionup/down etc. Is this possible?

Yes. See ContextActionService to detect when players press the arrow keys.

1 Like

In the Egg Hunt UI, I just set GuiService.SelectedObject to the button that the player is mouse hovering over. That way, you get WASD/arrow key navigation for free without having to implement this yourself. I found this to be way more convenient.

3 Likes