The boss key is at the top of Hyrule Castle, reached by working your way up through the building. Here is the route from the moment you step inside.
Take out the enemies that rush you, then head up the small stairway on the left and use the clawshot on the chandelier overhead to swing up to a balcony. Open the chest there for the Compass.
From the balcony, aim at the next chandelier and lower yourself first so you have a clean line on the one beyond. Clawshot across and land on the small balcony, then enter the room.
Defeat the knight, then stand on the lowered tile behind the raised one — it is really a stairway, but a small trick gets you up faster. Take out your boomerang and throw it at the torch on the left wall to extinguish it. Your step rises. Open the chest above for a Purple Rupee.
Now choose left or right; both routes converge.
Shoot the painting on the wall with an arrow to reveal a pattern, then light the four torches in that order to open the door. Defeat the enemies in the next room to unlock the doors beyond.
Shoot the middle painting on the right wall to expose a switch, then hit the switch to open the door. Take down the two knights in the following room to unlock the doors.
Leave through either door onto the exterior ramparts. At the end of the left walkway there is a chest containing the Big Key — that is your way to Ganondorf.
Have fun with him, and say hello from me. Full credit for the route goes to IGN; if you want more help with the game, their guide at ign.com is the place to look.