to make a child stay inside, often to punish them, or to not allow someone to leave the hospital.
She needed to keep him in the room to finish his homework.
她需要讓他留在房間裡完成作業。