Maybe some sort of OLED keyboard which predicts what you're going to write and presents the logical options for you in obvious places?
For example if you're writing java, there's only a small number of valid syntaxes you could start with, so the 'morphing keyboard' could just present those, then present the next options etc.
As you got more used to it, you'd know what it was going to 'morph' to, so would probably be able to go pretty fast.
I don't know what might work well though. I'm just saying the keyboard is not the ultimate input method, I'm sure we'll see a whole raft of changes before we get to mind reading.
So, the post you reply to does foresee a future without keyboards.
What intermediate stage do you see between keyboards and mind reading? As pointed out, handwriting and speaking code have significant drawbacks over the keyboard.