If the roots of the equation ax+a+k+bx+b+k=2 are equal in magnitude but opposite in sign, then the value of k is: