Better handling of multiple Esc presses