on cue

US /ɑn kjuː/
UK /ɑn kjuː/
"on cue" picture
1.

if something happens on cue, it happens just after someone has said or thought that it would happen

:
As soon as I mentioned his name, he walked on cue into the room.
The rain started on cue, just as we were about to leave.