reset input state when window looses focus or is recreated