# WidgetInteraction-\>SendKeyChar() does not work in UE 5.1?

**URL:** <https://forums.unrealengine.com/t/widgetinteraction-sendkeychar-does-not-work-in-ue-5-1/714519>\
**Category:** UI\
**Tags:** unreal-engine, bug-report, Widget, Blueprint, CPP\
**Created:** [November 24, 2022, 11:17am UTC](https://forums.unrealengine.com/t/widgetinteraction-sendkeychar-does-not-work-in-ue-5-1/714519 "2022-11-24T11:17:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon33985116](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon33985116](https://forums.unrealengine.com/u/anon33985116)\
**Post date:** [November 24, 2022, 11:17am UTC](https://forums.unrealengine.com/t/widgetinteraction-sendkeychar-does-not-work-in-ue-5-1/714519/1 "2022-11-24T11:17:47Z")

</div>

Hi everyone,

I just switched from UE 5.0 to 5.1 for a VR project that had a working 3D UI with text boxes and a virtual keyboard based on [https://docs.unrealengine.com/5.1/en-US/creating-virtual-keyboard-interactions-in-unreal-engine/](https://docs.unrealengine.com/5.1/en-US/creating-virtual-keyboard-interactions-in-unreal-engine/).

After the switch I had problems with the game losing focus after interacting with the UI so that only the first interaction went through. Switching to the new EnhancedInput system the focus problem seems to be fixed, but _SendKeyChar()_ both using Blueprint and C++ does not work and always returns false.

This can quickly be reproduced in the Virtual Reality template:

1. Add a TextBox to _WidgetMenu_. You can now select the text box using the controller pointer and enter characters using the PC keyboard.
2. Add a new InputAction and assign a controller button to it in _IMC\_Menu_.
3. In the _Menu_ blueprint call _SendKeyChar()_ when the input action is triggered.

 ![SendKeyChar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/b/e/bbe7f04501969366cef4685e3dd4bf240162555d.png)

This always returns false and the character is not sent to the text box.

Am I missing something or is this a bug?

---

<div class="post-metadata">

**Author:** ![ZenLeviathan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zenleviathan/32/551307_2.png) [@ZenLeviathan](https://forums.unrealengine.com/u/ZenLeviathan)\
**Post date:** [November 24, 2022, 6:04pm UTC](https://forums.unrealengine.com/t/widgetinteraction-sendkeychar-does-not-work-in-ue-5-1/714519/2 "2022-11-24T18:04:24Z")

</div>

@anon33985116  
Is your output always false?  
-Zen

---

<div class="post-metadata">

**Author:** ![anon33985116](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon33985116](https://forums.unrealengine.com/u/anon33985116)\
**Post date:** [November 25, 2022, 3:57am UTC](https://forums.unrealengine.com/t/widgetinteraction-sendkeychar-does-not-work-in-ue-5-1/714519/3 "2022-11-25T03:57:38Z")

</div>

Yes, _SendKeyChar()_ always returns false.

---

<div class="post-metadata">

**Author:** ![anon33985116](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon33985116](https://forums.unrealengine.com/u/anon33985116)\
**Post date:** [December 9, 2022, 5:51am UTC](https://forums.unrealengine.com/t/widgetinteraction-sendkeychar-does-not-work-in-ue-5-1/714519/4 "2022-12-09T05:51:46Z")

</div>

To follow up on this: As it turns out, _SendKeyChar()_ is not the problem here, but a change to _PressPointerKey()_. For now, I reverted [this](https://github.com/EpicGames/UnrealEngine/commit/dad870090760393fc04848f3a680ea121a126069) commit and it fixed the problem. Relevant bug report [here](https://issues.unrealengine.com/issue/UE-166377) (UE-166377).
