SPOILER
You should get 1 key from the guard (who is sleeping) - you have to steal it from him
2. You open the second gate using the switch on the first ground floor (red one).
3. Last gate - you need to approach the jug on the right, get past the guards and open the chests.
PS. Sorry for late, I was watching arifureta.