prefs: close preferences window with Escape similar to dialogs