Interact with doors using a key?

Am starting to learn scripting and such but am still a noob

i have been looking for videos about it and no luck

i check unity answers and found some scripts but i dont know how to add them or use them

Check out my answer here :

You need to look up colliders and triggers =]