remove cancel keypress events