The tailgate key switch is 2 weather-resistant SPDT micro switches riveted into a bracket, and operated by a paddle attached to the lock cylinder. The lock cylinder is retained by the brown clip against the painted surface, much like the door lock cylinder retainer clips. The switch assembly is retained on the lock cylinder by the hairpin behind the center of the paddle.
I usually keep spare lock cylinders, so if you can't find one locally, e-mail me thru my profile here.
.