@lanodan @neil I did implement this at one point for X using a very early cheapo head rather than eye tracking helmet. It definitely had potential but the kit was never ready for it.
Didn't find looking away a problem you just had to remember to look back before typing again. I suspect some kind of "and don't change window until they keyboard is idle a bit" might work too.
Was more useful for quake.