This question already has an answer here:
Can you store more than one of the same key in the same capsule? Providing of course you have enough room etc.
I noticed that you can only hold one of the keys, as the portal doesn't give you one if it picks up you already have one. I have a key in my inventory as well as in a capsule. I am not sure if I should try adding it to the capsule without losing it. Can anyone clarify that you can store multiple keys in the same capsule?