Update input color while typing.