The Front Window condition looks at the front window of a specified application (or the front application) to determine if:
If you are using Keyboard Maestro to execute some type of UI action that uses a dialog window (like Open, Save, Save As), you can use the Pause Until action to pause based on the Window Title, which will often change during the process.
To determine the Window Titles during the process, create a test macro with a Set Variable to Text action, and leave it visible while you go through the manual steps.
The macro will show the results without running it as you go through the manual steps. If the Window Title changes during/after your process, you can use that in a Pause Until action.