Pressing e to interact.

Hi, so I have a simple box that adds you points to the hunger value. When i walk over it, it gets consumed so it’s being destroyed. The thing is, I want to interact with it by the “E” key instead of just
walking through the box. How can I do that?