coding for fix the bug what gif stop on ie when press 'esc'