Flush input before reading so that on slow devices (Raspberry Pi), you don't scroll for several seconds after you release a key