Pressing S with two units selected in OpenYR queued two Stop commands and showed a notice. The audio capture was quiet at that point. Each unit needs its own command, but the sound acknowledges the keypress. I put the cue in the keyboard handler after it has found units that can take the order.
The handler uses the map's StopSound setting. In the EB1 test, the keypress queued two commands and the mixer recorded one CommandBar cue at tick 2. The before-and-after audio samples only differed between 0.067 and 0.355 seconds into the capture. An empty selection, a held-key repeat and muted input produced no extra cues.
The same keyboard test works with a tiny test map and a generated tone. Replacing StopSound changed the cue it recorded. Clearing the setting left the captured audio silent while the keypress still queued both Stop commands.1