Add support for the escape key.