Resets key state data when window is blurred.