Train kitten

How to you train kittens to learn boundaries and when to play and when not to play? She was laying next to my face and just clawed me in the eye (I didn’t feel her claw thank god.) she likes to walk up to my one year old and tried to play but kind of scratches her. I don’t want to get rid of her, but it’s not ok that she’s scratching my daughter in the face and me also. I need to trip her claws, but I don’t want to declaw her.

Thanks I’ll do that!