/Engine/Source/Runtime/UMG/Public/Blueprint/UserWidget.h
ListenForInputAction will automatically Register an Input Component with the player input system. If you however, want to Pause and Resume, listening for a set of actions, the best way is to use UnregisterInputComponent to pause, and RegisterInputComponent to resume listening.
void RegisterInputComponent()