Using EnhancedInput on Component attached to HUD not working.

I am using BindAction to open a menu. The bind is executed and no errors appear but when I press the key to trigger it nothing happens. I can go into the HUD BP and bind an action in blueprint and it works fine but I want it in C++. Anyone had these issues.

BindAction( OpenInGameMenuActionToggle, ETriggerEvent::Triggered, this, &UIInGameInputComponent::ToggleMenu );

If anyone had issues here the problem resonates from the input component not being on a character/playercontroller. To fix this push your component (APlayerController::PushInputComponent) onto the player controller and it should work.