1. An input device comprising: an input surface aligned with a plane; and an optical sensor oriented toward the input surface, the optical sensor having an optical axis parallel to the plane and configured to detect along the input surface a vertical aspect of a motion relative to the input surface or a looming aspect of the motion relative to the optical axis, and suppress the motion if the detected aspect exceeds a threshold amount.