I would suggest freeing yourself from the manacles, and stand in a place where when the door swings open, shut the door, trip him, manacle him, gag him so he doesn't scream, and take the weapon he probably has, along with the keys. Unlock the other prisoners, but tell them to keep the door...