you can override the PopupPanel#onKeydownPreview method like below;
@Override
public boolean onKeyDownPreview(char key, int modifiers) {
// Use the popup's key preview hooks to close the dialog when either
// enter or escape is pressed.
switch (key) {
case KeyboardListener.KEY_ENTER:
case KeyboardListener.KEY_ESCAPE:
hide();
break;
}
return true;
}
Hasan...
http://www.jroller.com/hasant