# \[UE5.1.1, Bug Report\] Input Key Selector widget ignores modifier keys.

**URL:** <https://forums.unrealengine.com/t/ue5-1-1-bug-report-input-key-selector-widget-ignores-modifier-keys/1028863>\
**Category:** Debugging, Optimization, & Profiling\
**Tags:** unreal-engine, bug-report, slate, Widget, CPP, Blueprint, question, UMG\
**Created:** [April 15, 2023, 5:37pm UTC](https://forums.unrealengine.com/t/ue5-1-1-bug-report-input-key-selector-widget-ignores-modifier-keys/1028863 "2023-04-15T17:37:36Z")\
**Posts on this page:** 1\
**Page:** 1

<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 15, 2023, 5:37pm UTC](https://forums.unrealengine.com/t/ue5-1-1-bug-report-input-key-selector-widget-ignores-modifier-keys/1028863/1 "2023-04-15T17:37:36Z")

</div>

1. add an input key selector widget to your UserWidget.
2. run PIE, click the widget and select an input key using the keyboard.
3. G works, Shift + G works, Ctrl + G works, but Shift + Ctrl + G just sets “G”.

with such a widget it either just works or is unusable to me. If I want to set an entire input chord I want to do just that. On mouse it’s not even working at all. It’s pointless to include features which are broken. “Here’s a new bike, flat tires but you can fix that right?”. Every single feature released.

Here’s the issue:

```auto
FReply SInputKeySelector::OnKeyUp( const FGeometry& MyGeometry, const FKeyEvent& InKeyEvent )
{
	FKey KeyUp = InKeyEvent.GetKey();
	EModifierKey::Type ModifierKey = EModifierKey::FromBools(
		InKeyEvent.IsControlDown() && KeyUp != EKeys::LeftControl && KeyUp != EKeys::RightControl,
		InKeyEvent.IsAltDown() && KeyUp != EKeys::LeftAlt && KeyUp != EKeys::RightAlt,
		InKeyEvent.IsShiftDown() && KeyUp != EKeys::LeftShift && KeyUp != EKeys::RightShift,
		InKeyEvent.IsCommandDown() && KeyUp != EKeys::LeftCommand && KeyUp != EKeys::RightCommand );

	// Dont allow chords consisting of just modifier keys.
	if ( bIsSelectingKey && (bAllowGamepadKeys || KeyUp.IsGamepadKey() == false) && ( KeyUp.IsModifierKey() == false || ModifierKey == EModifierKey::None ) )
	{
		SetIsSelectingKey( false );

		if (bEscapeCancelsSelection && (KeyUp == EKeys::Escape || IsEscapeKey(KeyUp)))
		{
			return FReply::Handled();
		}

		SelectKey(
			KeyUp,
			ModifierKey == EModifierKey::Shift,
			ModifierKey == EModifierKey::Control,
			ModifierKey == EModifierKey::Alt,
			ModifierKey == EModifierKey::Command);
		return FReply::Handled();
	}
	else if (!bIsSelectingKey && Button.IsValid())
	{
		return Button->OnKeyUp(MyGeometry, InKeyEvent);
	}

	return SCompoundWidget::OnKeyUp( MyGeometry, InKeyEvent );
}

```

Go catch em all
