Fixed escape key bug