There's no specific key that is intended for canceling a specific action while recording, but you could stop recording by pressing the Esc key and then you can start recording again by either clicking Record or selecting another specific action.

You may also continue with your recording and delete the unwanted activity once the Recording Sequence has been generated.