Using thought to control machines