Step 1: Using the condition of continuity at $x=0$.
For continuity at $x=0$,
\[
\lim_{x\to 0} f(x)=f(0)
\] Step 2: Evaluating the limit.
\[
\lim_{x\to 0}\frac{4\sin \pi x}{5x}
=\frac{4\pi}{5}\lim_{x\to 0}\frac{\sin \pi x}{\pi x}
=\frac{4\pi}{5}
\] Step 3: Equating with $f(0)$.
\[
2k=\frac{4\pi}{5}
\Rightarrow k=\frac{2\pi}{5}
\] Step 4: Conclusion.
The value of $k$ is $\dfrac{2\pi}{5}$.