If \( A \) and \( B \) are independent events and \( P\left((A - B) \cup (B - A)\right) = k - P(A)P(B) \), then \( k = \)