Machines for duplicating keys