Line trace ignore trigger box

I want to signal the player that you can pick up a key. I found the best way to do that is by making the key light up when you come close to it. Basicly you collied with a trigger box and the key lights up and you can pick up the key by pressing e and if the line trace from the player hits the key you will pick it up. The thing is if your anywhere inside the trigger box you can pick up the key (it doesn’t matter if you’re looking at the key or not).