possible spoiler

How did the key to Purgatory get destroyed? I looked away for a moment and it was gone and they were congratulating themselves.