Everyone from Mark Zuckerberg to Elon Musk to the Department of Defense is investing in technology that will allow humans to control machines with our minds.