stop propagating the ESC and Enter key