editing doors

Hello! How would i go about editing doors… this is for a new gamemode meaning how would i make functions run when a player presses E on the door on the map… Thanks!

Yes thanks i just ran into that! Thanks