To date, commercial atomic force microscopes have been optimized for measurements of forces perpendicular to the sample surface. In many applications, sensitive parallel force measurements are desirable. These can be obtained by positioning the cantilever with its long axis perpendicular to the sample: the so-called pendulum geometry. We present a compact optical beam deflection system which solves the geometrical constraint problems involved in focusing a light beam onto a cantilever in the pendulum geometry. We demonstrate the performance of the system on measurements of forces imparted by a muscle myofibril, which is in-plane to a high-magnification objective of an optical microscope.