so, if you have already picked that lock, that key is just taking up inventory- unless it vanishes after the fact.
Keys should be quest items, e.g. they appear in your inventory, but don't take up inventory space. Basically any item that cannot be removed from your inventory manually will not take up an inventory slot.