Yard design
A/D tracks are only in the larger yards. In smaller yards, whatever track works is used. However longer, double ended tracks are generally used as A/D tracks.
Here is a picture of the throat of my yard, looking north:
The track with the light color ballast is the main track. Then going left to right is the runner (caboose is on it) then yard tracks 1 thru 5. Tracks 1 and 2 are double ended and tie into the runner. Tracks 3-5 are stub ended.
All the tracks to the left of the main track are industry tracks.
Note I have a pair of crossovers at this end of the yard and there is another pair at the other end of the yard.
Parallel to the switch lead is the caboose track and a scale track. They tie into the tail track and #5.
Back by the water tower, the tracks to the right are the main and the tail track of the switching lead.
With this arrangement I can yard a train on the main, runner, #1 or #2, but I can depart a train northward off any track. If a train terminates on the main track, the switcher can reach through the crossover right by the caboose and pull the train back onto the tail track to switch it.
I showed this to compare with your yard design, a very common model railroad design. The ONLY way a car can get in or out of the yard is if the switch puts it over into the AD tracks. A train can't set out or pick up directly from the yard (very common in smaller yards). That can really hamstring your yard operation.
What you are calling a "key" is called a "classification" or "block". Blocking can be anything the railroad wants it to be. It can be another yard, another railroad, another city, a train, an industry, a status of car, a type of car, anything that helps the railroad route the cars in the best manner.
On my railroad I have blocks for Wilmington, Elsmere Jct, Coatesville, Birdsboro, Reading, St Clair and Philadelphia. The last three are really the same block. Elsmere Jct is an interchange with the B&O. Wilmington and Coatesville have sub-blocks for the yard engines/industrial areas/locals/interchanges. If a car has a block on the waybill of "Wilm-MD" then that mean the car is routed to Wilmington. When it gets to Wilmington, the yardmaster there knows it goes the Maryland Ave area (MD) and switches it into the track with the rest of the industry job cars.
Here is a graphic of how my blocking is arranged : Yellow = Wilmington, Blue = Elsmere, Orange = Coatesville, Pink= Birdsboro, Green = Reading, St Clair, Phillie. White (no color ) is the road local.
This is a picture of some waybills at Coatesville. Notice the "Via" line has the Coatesville block and its highlited orange. My CC&WB look a bit different since they are meant to represent actual "car cards" that were used in my era (yes, real railroads used car cards).
On my layout the Wilmington yardmaster can put the cars wherever he wants (its his yard), but the suggestion is the Maryland Ave (Wilm-MD), H&H (Wilm-H&H) and 6th Ave (Wilm-6th) cars go to #1. The Delaware River Extension (Wilm-DRE) and car float cars (Wilm-Float) go in #2. The north cars and local cars (all the other classifications) can go in any of the other three tracks as the yardmaster sees fit, based on how many cars he has to deal with.
Since the tracks with the cars the Wilmington industry switcher will be handling, #1 and #2 are double ended, the industry job can sort out his cars for where he wants to switch on the other end of the yard. That way the switcher classifying and building trains won't have to spend time building the industry job and the industry job can switch his stuff as he sees fit.
Short answer, if you aren't asleep by now, make your blocks whatever you need them to be and makes sense for your railroad. It all depends on how you operate your trains.