To keep a 3-year-old child in bed throughout the night, parents can implement strategies such as establishing a consistent bedtime routine, creating a calm and comfortable sleep environment, using positive reinforcement for staying in bed, and addressing any underlying sleep issues.