Step 1: Conceptual Understanding:
For $f$ to be continuous at $x=0$, we need $f(0) = \lim_{x \to 0} f(x)$. Step 2: Explanation in Detail:
Using $\displaystyle\lim_{x \to 0}\frac{\log(1+px)}{x} = p$:
$k = \displaystyle\lim_{x\to0}\frac{\log(1+ax)-\log(1-bx)}{x} = a + b$. Step 3: Therefore, Stating the Final Answer
$k = a + b$.