Added Escape Key Functionality