Thanks so much for your help. I’ve now come up with a solution that works using your function.
At first, “enter pressed” wasn’t logging to the console because there was some default behaviour happening beforehand. I added e.preventDefault(); and then it logged to the console.
I then replaced the console log with a function call to display the item in the list. I ended up adding an ‘onclick’ to the HTML element because I couldn’t figure out a way of triggering the other addEventListener function by pressing the ENTER key.