pub fn flush_input() -> Result<(), Box<dyn Error>>
Flushes the input event queue, ignoring any stray Enter key events.