flushInput makes you respond to the latest changes