So far, brain-computer interfaces have been used for relatively simple tasks, mainly to restore motor control for paralyzed patients and enable communication for locked-in patients with brain injuries that prevent them from communicating verbally or gesturally.