I've had multiple eye surgeries. Prep includes putting lidocaine jelly over the eye, which will immobilize your eye from movement during the procedure.
Although I will say having my eyes immobilized also sounds scary. And I feel like I would constantly be "checking" that I still can't move them.
I'm profoundly grateful for modern medical technology, as I would otherwise likely be blind in both eyes.