# Using Only Keyboard Inputs on Widgets

**URL:** <https://forums.unrealengine.com/t/using-only-keyboard-inputs-on-widgets/1274234>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, Widget\
**Created:** [August 27, 2023, 1:14pm UTC](https://forums.unrealengine.com/t/using-only-keyboard-inputs-on-widgets/1274234 "2023-08-27T13:14:26Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [August 27, 2023, 1:24pm UTC](https://forums.unrealengine.com/t/using-only-keyboard-inputs-on-widgets/1274234/2 "2023-08-27T13:24:41Z")

</div>

Any widget can lead to any other widget:

> [@Is there a way to edit the tab order in UMG?](https://forums.unrealengine.com/t/is-there-a-way-to-edit-the-tab-order-in-umg/306219/7):
>
> One can set very explicit navigation rules for any widget that can keyboard focus: [image] Next / Previous corresponds to Tab / Shift Tab afair. afair Yup: While this button has keyboard focus Tab goes to button 5, Shift+Tab goes to button 3.

* * *

I mean, if you used buttons (as most people do), the keyboard navigation already works by default. There’s no need to do anything special.

- widget

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/f/d/7fdf09087f81107e9da19cc9c88a48653534bd9d.png)

- add and set focus to the button you need to start with:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/a/e/2ae94fcef2a648d5fea2aa2538a34c414d982b7e.png)

* * *

You’d only set up navigation for more complex scenarios, like:

> cycle between options

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/8/a/08ac29c14826253d7ea3d7000a1066c04468d3d6.png)

The last button now leads to first, so you can keep mashing ⬇ to cycle.

---

_[View the full topic](https://forums.unrealengine.com/t/using-only-keyboard-inputs-on-widgets/1274234)._
