Control of scanning images during ophthalmic surgery may be performed with a scanning controller that interfaces to an optical scanner used with a surgical microscope. A scan control device may receive user input, including hands-free user input, for controlling an overlay image of scanning data that is overlaid on optical image data viewed using the surgical microscope. A selected location for optical scanning may also be displayed and controlled using the scanning controller.