track key states