Changing primary keys type to Key type.