If SImGuiWidget does not have focus, it will not receive calls to SImGuiWidget::OnKeyDown. This means that ToggleInput cannot be called which is what gives us focus in the first place. I'm not sure if something has changed in UE 5.1 as this appears to work in this tutorial video from 9 months ago on 5.0.1. https://youtu.be/qyO38jX5RU8