There are many programs that can imitate inputs of different controllers. Set training to kb as your primary, then use your whatever program (autohotkey should do) to make p1 do stuff. Meanwhile set training dummy to human controlled mode and use your controller to control p2. If you use just kb this works too, just set controls of p1 and p2 accordingly.