KeyEvent.isEscape

bool isEscape() const @safe nothrow @nogc

Checks if this is the Escape key.

Returns

true if Escape was pressed