Um, no. This isn't easy to do, except in movies. Glass doesn't have the CPU power to do it, so you'd have to rely on cloud power; do you really think everybody wants all their key strokes sent to Google? And language models aren't that much help with terminal commands. And even humans can't do this; you're expecting Glass to be smarter than a human... not impossible, but think about what processing power and memory it has on board, both constrained by battery. And your head would have to be in an incredibly awkward position. So many reasons, no.
Yes, I'd send my keystrokes to Google if I could do this. Sure, this won't work for everyone but it will for most. Let's optimize the problem for the 80% and continue working on the other solution.
If all the problems could be solved, it would be awesome. But I'm very skeptical. And I misspoke about keystrokes, of course: what we're really talking about sending to the cloud is finger and hand movements; the keystrokes would be coming back from the cloud. Sounds laggy maybe, on top of all the other problems I mentioned.
probably would be more effective to have an electrode connected to your brain