Find the values of K. So that the function $ f(x) = \left\{ \begin{array}{l l} \large\frac{k \cos x}{\pi -2x} & \quad if \quad x \neq \large\frac{\pi}{2} \\ 3 & \quad if \quad x =\large\frac{\pi}{2} \end{array} \right. $ is continuous at $x =\large\frac{\pi}{2}$ .