入っていくと

when (someone) goes in

→ 入る
phrase Rare #44,913
when (someone) goes in The と marks the event that follows as happening when or once someone goes in.
JA: 部屋に入っていくと、猫が窓辺にいました。
EN: When I went into the room, the cat was by the window.

私が入っていくと彼は立ち上がった。

He stood up when I walked in.

俺がトイレに入っていくと 連中はおしゃべりをやめて俺を見た

When I walked into the restroom, they stopped talking and looked at me.

— レザボア・ドッグス (1992)