What version of gaim? As i recall, this is a known issue, but please give us more information. ** Changed in: gaim (Ubuntu) Status: Unconfirmed => Needs Info -- Escape should close dialogs in Gaim https://launchpad.net/bugs/72735