Original: When the rioters had entered the Bastille, they collected cartridges and gunpowder for their weapons and then freed the seven prisoners (which they had to do by breaking down the doors, since the keys had already been taken off and paraded through the streets).
Simplified: They had to break down the doors because the keys had already been taken and shown in the streets.