System and method for operant learning brain machine interface