Customizing lyra caracter functions so i can interact with loot chests

Hi, Guys. Hope all of you are doing well. So wanted to ask you guys how I can make lyra in such a way that it interacts with a loot box when the e-key is pressed. because I have been stuck on this for quite some time now