register the escape key