Custom cursor that only moves between widget buttons?

Hello!

To preface, I’m fairly new to game development and C++. I have a menu widget and would like to have a simple custom cursor that only moves between the buttons in my widget instead of simply showing the computer cursor when the widget opens. I’m using C++ and UMG and I’m not sure how to go about doing this.

I couldn’t find much info on this when looking for a solution on my own. I asked chat GPT and it suggested I create a new widget class for this cursor, adding it to the viewport, and programming the movement. I wanted some more guidance in doing so, however, because I have no idea how to program the cursor to only move between the buttons in my menu widget. Any help is appreciated. Please let me know if any more information is required.

Thank you!