Ctrl-F4 or Ctrl-W closes query window and table management window (after confirmation, just like clicking on the close button)