I have encountered this problem several times, just record it
ctrl + z to cancel ctrl + shift + z to reverse the cancel function is the same as these two keys in word