Unfortunately, there is no functionality that will signal your plugin when the user uses the Undo button. We will put it on the wish-list for future enhancement development work. A prioritization needs to be made by Milestone Product Management, so it is not possible to say when, or even if, this will be developed.