he enters the room
彼が部屋にはいると、警官が待ちかまえていた。
When he entered the room, a police officer was waiting for him.
彼が部屋にはいるのを見た。
I saw him enter the room.
彼が部屋にはいるや否や、彼女はわっと泣き出した。
No sooner had he entered the room than she burst into tears.