We study the problem of perturbations of quasiperiodic motions on coisotropic invariant tori in a class of locally Hamiltonian systems. We prove a general KAM-theorem on the perturbation of coisotropic invariant tori for locally Hamiltonian systems. As applications of this theorem, we consider the motion of an electron on a two-dimensional torus under the action of an electromagnetic field and extend results concerning the bifurcation of a Cantor set of coisotropic invariant tori to the case of locally Hamiltonian systems.