[4.7.6] switching input mode causes keys to "stick"

Build: 4.7.6, built from source

Description: If a key is held down while “SetInputModeUIOnly” is executed that key is still considered pressed after switching back with “SetInputModeGameAndUI” (according to “IsInputKeyDown”, as reported by input axis events, etc.)
Workaround is to call “SetFocusToGameViewport” after “SetInputModeGameAndUI” which seems to wipe all key states (this solution is not ideal as it requires you to re-press any keys you’ve been holding down)

Repro Steps:

  1. start the sample project
  2. follow instructions

Attachments: sample project

Hello ,

I was able to reproduce your issue. I have written up a report ( UE-14476) and I have submitted it to the developers for further consideration. I will provide updates with any pertinent information as it becomes available. Thank you for your time and information.

Make it a great day