How do I pickup a item onactorbrginoverlap by pressing f?

I am trying to add an item to inventory by walking over to it and pressing “f” WHEN I am inside the box collision. Can anyone help me make it to where I can pickup an item when I press “f” in the box collision of that item?

you will need to enable input in the pickup actor then script on input event F (insert your pickup script). basically like the below example, on overlap you enable the input to the pickup item actor, on end overlap you disable input. then when the f key is pressed and you are overlapping you do the pickup script whatever that consists of in your case.

It worked. Thanks!