As he did, she gasped.
She gasped when he did that.