You do not enter the child's W-2 on your tax return.
If the child had taxes withheld from their wages they can file a tax return for a tax refund. If they do file a tax return make sure that they indicate on their return that they can be claimed as a dependent.
The name on the W-2 and the name on the child's tax return do not have to match. Only the Social Security number must be the same.