The keys have different openings in their bits. There are keyholes on the sides of the box. The number of the semicircular recesses next to those keyholes is equal to the number of the openings in the bits.
When all keys are placed in the appropriate order, a hidden slider on the front of the box will be pushed out. Sometimes it is not necessary to put the fifth key into the keyhole, when the box is held horizontal.