This video examines Input Modes in Unreal. There is Game and UI. When Unreal is in one input mode, it cannot use the other. When considering menus, this is important, as input might be needed for the UI and not the game.
When working with widgets, we often want to switch to the UI input mode, handle the UI scripting, and then switch back as part of also removing the widget from the parent (viewport).