This is how it stayed until the day some random project of my son's involved placing a servo inside a small stuffed toy. The moment my daughter saw the little toy turn and "look" at her, there was nothing in the world that could stop her from trying to learn how to do this herself.
You can't teach your child to code, only present it in a way that will interest them. If you succeed you will not be able to stop them. No one else will be able to either.
“I think the big mistake in schools is trying to teach children anything, and by using fear as the basic motivation. Fear of getting failing grades, fear of not staying with your class, etc. Interest can produce learning on a scale compared to fear as a nuclear explosion to a firecracker.” ― Stanley Kubrick