An electrical connector including a housing; electrical contacts connected to the housing; a shield connected to the housing; and a mating connector key connected to the housing. The key includes a front section and a rear section. A portion of the shield is located between the front and rear sections of the key to retain the key with the housing.