Autoclosing input menus / closing on Esc.