add: if (event->xkey.keycode == panel->escKey) { if (panel->altBtn) { WMPerformButtonClick(panel->altBtn); } else {  panel->done = 1; panel->result = WAPRDefault; } }
context: handleKeyPress2(XEvent *event, void *clientData){    WMInputPanel *panel = (WMInputPanel*)clientData;    if (event->xkey.keycode == panel->retKey) {	WMPerformButtonClick(panel->defBtn);    }}