Brain-machine interface with VR turns intentions into action