Eye-tracking is an underrated user input method in my opinion. I'm hoping eventually VR/AR will make it mainstream.
Webcams don’t have enough resolution to be so precise, need really good models to track your head and estimate pose, etc. You also aren’t illuminating anything with a web cam so dark eyes become difficult, glasses non-linearly, warp the eyeball, and a host of other problems. Webcam based approaches usually get very very rough areas that move around like crazy (very noisy).
Essentially the best way to do it is to have something mounted to your face that’s purpose built. There are external eye trackers that are attached to monitors that can do pretty well, but are usually very expensive. The cheaper ones aimed at gamers are quite inaccurate.
https://atap.google.com/soli/
I always think of this blog where the person had to use their nose because their hands were in pain.
http://www.looknohands.me/
Discussion from 7 years ago:
https://news.ycombinator.com/item?id=8805053