Scientists have used a brain-computer interface (BCI) that could help people who are unable to speak communicate more easily.