Fixed Escape key causing error