I just went through this during the week. I've got a power tailgate from an '88 K5 that I installed on my '75 K5. The key was missing...

To remove the switch you have to take the entire tailgate apart.
Open the tailgate and remove the inner panel. Unbolt the brackets at the bottom of the glass, that hold the glass to the regulator. CAREFULLY remove the glass (a helper is pretty handy at this step!) Next, remove the regulator assembly. It's held to the gate with 4 small bolts. (You may have to run the regulator up or down a bit to get to all 4 bolts. You can attach a drill to the motor end of the regulator drive cable for this). Unbolt the regulator assembly and then slide it out towards the passenger side. You'll need to unhook the drive cable from the motor to get the regulator out.
Now you can finally get to the two small nuts that hold the switch and housing in place. The wiring connector is held in place by a push nut. Carefully pry side to side and it will slowly walk its way up off of the post. Next, gently pry the connector straight off the back of the switch.
Remove the spring clip that holds the switch assembly into the rectangular housing and then take the switch to the locksmith. They took mine apart and made 2 keys for it in about 10 minutes. Cost $24.
Have fun putting it back together...