how can you add keyframes to the child mesh parented to the parent mesh
Around the top of your object viewport please click the options button in object mode. There should be a dropdown menu that allows you to change the transformations allowing you to only affect the parent and not the child.