Okay, this is good. You didn't say what your Door common event is - is it just doing the SE and move route so the door opens, or are you checking that switch for some reason?
It's been a long time since I used XP. To do it the way I said, you'd need to do a bit of complex scripting, and IIRC XP doesn't have a big script window. So the method I'm giving you below turns on a switch, makes EVERY door on the current map check to see if the player is standing in front and facing it, then turns off the switch again. If there is a door that meets the requirements, it will open itself and turn on its own self switch. This means you don't need to use a global switch, and you don't need to use terrain tags.
Make your common event look like this (of course use whatever variables you have available, and name them accordingly:
Code:
Control Variables: [0001: Player X] = Player's Map X
Control Variables: [0002: Player Y] = Player's Map Y
Control Switches: [0002: Key Used] = OFF
Control Switches: [0001: All Events Check for Key] = ON
Wait: 10 frames
Control Switches: [0001: All Events Check for Key] = OFF
Conditional Branch: Switch [0002: Key Used] = OFF
Text: It's a Key
End
That's it - it stores the player's location into variables, tells all events to check if they're "the one", and turns off the switch again. 10 frames is probably generous - you could reduce this if you don't have your maps flooded with events.
Now on your door event, create another page in between the existing two (so page 1 says you need a key, page 2 is the new one, and page 3 has self switch A on rather than the switch you're using now):
Code:
Conditional Branch: Script: $game_variables[1] == get_character(0).x
Conditional Branch: Script: $game_variables[2] == get_character(0).y + 1
Conditional Branch: Player is facing Up
Play SE
Change Items: Door Key - 1
Control Switches: [0002: Key Used] = ON
Control Self Switch: A = ON
Text: Opened
Else
Text: It's a Key
End
End
End
Set it to Parallel Process, and condition it by Switch [0001: All Events Check for Key].
So what we're doing here is making each event check the player's location in relation to itself (get_character(0).x is "this event's" X position, and get_character(0).y + 1 is one tile below "this event"), see if the player is facing the right direction, and if so, unlocking the door.
If the door is facing a different direction and the player needs to be facing a direction other than Up, you'll change those 3 conditional branches to specify what tile the player should be on and what direction they should be facing. If you have this and you run into trouble, post a screenshot of your map showing where things are, and I'll walk you through that example.
Now you can copy and paste this event all over the place, onto the same map or onto different maps, and as long as you have a key, whatever door you're standing in front of and facing, will open.
Switch 2 is just an extra that gets turned on if a door event is found, so if it's still off by the time the common event's wait is finished, it knows no door was opened, so the player probably wasn't standing in front of one, and you can just display that message again.