Input handling with menu