To unlock all the prisons, you have to do:
- Start a new game.
- Enter the prison selection screen.
- Enter the following arrow keys.
Up, Down, Down, Left, Right, Left, and Right
After entering the combination, you will hear a beep, this is a sign that you have done everything correctly. Congrats!