Translation:Nyckeln hänger i en kedja.
when do you use "pa" vs "i"?
Very roughly på = on and i = in. In this specific sentence, both work.
The key hangs IN a chain?
A suggestion: it is good to repeat the correct answer in a loud voice, and try to get it right.