Broader support for showing correct mode changes. StateCheck will now be called at least once per second.
Force polling to call at least every 2 seconds when a textbox is selected.