Adding Esc Key Functionality - when pressed, should exit out of edit mode