a lot of the logic for opening doors and stuff is in level_logic.gd. also search for key_data.gd and door_data.gd
where is the logic for opening doors (the full thing, both seeing if you CAN open it, and actualy opening it)