keep in

Intermediário (B1) neutral

To stop someone from going out, or to not lose touch with someone.

"The teacher kept three students in at lunchtime for not finishing their homework."