Inventory Item Pickup (Not Working)

Why isn’t this working? It works when I plug OnComponentBeginOverlap directly into Cast To ThirdPersonCharcter, but I don’t want to keep it so whenever I collide with the object it picks it up, I want it so whenever I collide with the object and press the ‘E’ button it will pick it up. Any way to do that, because obviously I’m doing something wrong when using the Gate node.

So I’ve tried placing the “Enable Input” node in multiple places but it isn’t helping, so I have a question.

Where would I place the Node? In the pickup BP or in my player BP?

Fixed It!
This is what I changed it to.