This helper is for components which should be "dismissable" when the user presses the ESC key. It will keep track of the order these components are displayed, and notifies them when they should be dismissed.