Add cancel function launched by ctrl+z keybind