added ESC button support.