Say that someone borrows a key, and, while it is in his possession, gets a copy made of it.
Has he violated any halachos?
Does it make a difference how public/private the room is?
Does it matter if the key is even used for a room, as opposed to, say, an alarm, elevator, or locker?
Is he able to use the copy?