* Allow returning to input on selectTree when pressing escape * Call onEscape in single mode as well * Close the menu on escape * Extract handleEscapePress function