which version of ubuntu are you using? i can't reproduce on an upto date dapper. ** Changed in: gnome-session (Ubuntu) Status: Unconfirmed => Needs Info -- System shuts down when pressing esc, when the logout dialog is shown https://launchpad.net/bugs/46319