Interact in C++ UE4

Hello, Everyone!
How do i achieve this in c++?

Just a simple box collision when character is inside the box, the character can interact with “E” key pressed.
Thanks, in advance!