add ESC UPARROW and DOWNARROW support to popup