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.
彼女は彼に宿題を終わらせるために部屋に居させる必要がありました。