Keeps track of the order which escape listeners are registered and controls the order in which listeners are called
when escape is pressed. Ensures that only one escape listener is called per key press and that registered listeners
are called in last-in-first-out (LIFO) order (by registration time) for nested handling.
If a callback is registered with isEnabled = false, the callback's order is preserved but will be skipped when
escape is pressed.
Keeps track of the order which escape listeners are registered and controls the order in which listeners are called when escape is pressed. Ensures that only one escape listener is called per key press and that registered listeners are called in last-in-first-out (LIFO) order (by registration time) for nested handling.
If a callback is registered with
isEnabled = false, the callback's order is preserved but will be skipped when escape is pressed.