How can i make a simple text box that appears when the player presses E and touches an object

I’m making a paper2d game and i want a script i can reuse for other objects so i don’t have to do it all over again.

It’s a paper2d sidescroller
I just want a command i can reuse
Please help

The code will be similar 2D or 3D - check out these tutorials on quest system and interaction.