The key for the cells in the dungeon room is on a table to the left right as you enter the dungeon