make enter and escape in interactive input cancel