implement CTRL Z and CTRL Y