parse and interact with a NetHack menu