Not to unzip his trousers.

Tie the rope to the buckle, to get a loop. Or attach a ring of keys. Close the zipper, and a loop of rope or ring pull on the button.