The discovery was made many years ago, by a monkey.
Not kidding. It was an experiment to listen and interpret neural pulses with some electrodes implanted in a monkey's brain. Seen that in a video from the dawn of youtube era, couldn't find it any more, probably reported for animal cruelty and taken down. At some point the human researchers started to understand the neural pulses, and made the game to respond to the monkey's brain instead of responding to the joystick controller.
The monkey figured out pretty fast that the game can be controlled only by "thinking" at moving the joystick, without actually moving the joystick. Imagine the monkey chilling in front of the screen, and winning every game without moving a finger.
The awe on the researcher's face must have been priceless.
About the neural pulses recognition and translating that to text, that's nothing fundamentally new, just classic machine learning trained for the given patient.
The major drawback is that it requires electrodes implanted in the patient's brain.