A new surgical technique could help people with artificial legs accurately sense and control their movements.