This is part of ongoing BCI research. The method involved is called Functional Electrical Stimulation, and FES control via a BCI is just one of the latest developments in this field. Take a look at this and this for more info on current developments.