# Arrow keys don't trigger any key event when input mode is set to game + ui (or just ui)

**URL:** <https://forums.unrealengine.com/t/arrow-keys-dont-trigger-any-key-event-when-input-mode-is-set-to-game-ui-or-just-ui/525736>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE5-0, question, UMG\
**Created:** [April 12, 2022, 11:58am UTC](https://forums.unrealengine.com/t/arrow-keys-dont-trigger-any-key-event-when-input-mode-is-set-to-game-ui-or-just-ui/525736 "2022-04-12T11:58:57Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [April 18, 2022, 3:22am UTC](https://forums.unrealengine.com/t/arrow-keys-dont-trigger-any-key-event-when-input-mode-is-set-to-game-ui-or-just-ui/525736/10 "2022-04-18T03:22:54Z")

</div>

Ah, well the c++ thing isn’t a 2 step process. First you create a new class:

.h

```auto
#pragma once

#include "Framework/Application/NavigationConfig.h"

class FCustomSlateNavigationConfig : public FNavigationConfig {

public:

	FCustomSlateNavigationConfig();

};

```

.cpp

```auto
#include "CustomSlateNavigationConfig.h"

FCustomSlateNavigationConfig::FCustomSlateNavigationConfig() {
	KeyEventRules.Empty();
 // Add your own KeyEventRules in the KeyEventRules array

}

```

Then from another place, like your module’s .cpp file you could override Slate’s navigation with the custom one like this:

```auto
	FSlateApplication::Get().SetNavigationConfig(TSharedRef<FCustomSlateNavigationConfig>(new FCustomSlateNavigationConfig()));

```

I have heavily modified my stuff, haven’t checked what the arrow key should behave like on a clean project, that’s one thing you can still try before deep diving into code.

---

_[View the full topic](https://forums.unrealengine.com/t/arrow-keys-dont-trigger-any-key-event-when-input-mode-is-set-to-game-ui-or-just-ui/525736)._
