How to make working key?

Place a trigger volume inside the box, and On Begin Overlap check if the overlapping object is your key. Either make the trigger only overlap a certain collision type, or just add a specific actor tag to your key and make the trigger check if Other Actor => Has Tag [your tag name].