Look at the time line. Choose the words for the gap.
2 short stages, from recognising the form to using it yourself. Free for Intermediate (B1) learners, with instant feedback on every answer and no sign-up needed.
The phone rang ___ I was having a shower.
When, arrives, leave.
Use while for a longer action in progress when something else happens, or for two actions going on at the same time.