This is not connected correctly:
You do not any of those bools anymore:
Everything is handled by the map - each door should have an enumerator (the very pic I sent). And you must populate the key map when you pick up keys.
And this:
Should not be in the door at all. Avoid granting each door in the game access to the player - not a safe thing to do.
What I suggested would replace the entire system, not add to it.