I would look into some tutorials about the new enhanced input system and triggers for input actions. In them you can define if the action is a on shot, if it’s a hold action etc. You will have different outgoing pins depending on the triggers and modifiers you define there.
Create the mapping context in the same menu where you create the input action (it will have a yellow icon)
Setting mapping context in player controller
To get the enhanced input local player subsystem type in “enhanced subsystem” and it should find the node
Create input action
Setup input action triggers (when it fires)
Setting the input action inside of the mapping context
Implementing the input action
The result (print screen goes in reverse)