added return, esc key events for close and/or accept