You can Undo and Redo an action by pressing the corresponding buttons at the top bar or by using the shortcuts ctrl+z and ctrl+shift+z.

Using Undo you can reverse to a previous state of the knife template, with a limit of 25 states. If you have already used Undo, you can move to more recent state by pressing Redo.