main menu, key processing, focus handling improvements