Don't take the key! It's a trap!
(I got stuck a couple of times with a key and slimes between the door and me)
DO take the key, but just make sure all the slimes are dead first (or not near you). They get real angry when you get that key.