Allow user to cancel insertion

A small update so the user can press <kbd>Esc</kbd> to cancel and undo the previewed changes.