The key worked for the box, but he relocked it and put the keys away.
It fitted, and he opened the box, but after a moment's hesitation, closed and relocked it, and slipped the bunch of keys, as well as the key that had originally stood in the lock, into his own pocket. 