public boolean globtype(char k, KeyEvent ev) {
        if ((k == 27) && (this.menu_current_parent_resource != null)) {
            this.menu_current_parent_resource = null;
            menu_current_layer_elements_offset = 0;
            updlayout();
            return (true);
        } else if ((k == 'N') && (layout[gsz.x - 2][gsz.y - 1] == menu_next_tab)) {
            use(menu_next_tab);
            return (true);
        }
        Resource r = hotmap.get(Character.toUpperCase(k));
        if (r != null) {
            use(r);
            return (true);
        }
        return (false);
    }