Kinematics of the galaxy from a magnitude-limited proper-motion sample