Help with blueprint - issues

Is there anyway to make the character by pressing a key “X” do not go directly to the indicated location (grab the edge) - anywhere in the map, but only when this object is in his direction (in contact with the player)? I wonder, because I am with this problem and can not solve alone.

PS: Press key “X” character does not go straight to the object interface (grab the edge) at least he’s in his direction and there is contact.