The handling of your input action needs to be inside of an actor that actually listens to and reacts to input such as your pawn or player controller.
The handling of your input action needs to be inside of an actor that actually listens to and reacts to input such as your pawn or player controller.