I think you are reaching too far to start. Ear training of individual notes is not going to teach you how to accompany a melody.
Chord theory and understanding ‘the principle of minimal movement ‘ to go from one chord to the next by taking advantage of the inversion of the next chord that requires the least movement of your right hand primarily, is one of the secrets to comping along without effort. Those movements become 2nd nature. This is true for both keyboards and guitars.
What is your motivation for striving for this?
For me, I got hooked on all the add2 and sus4 chords I heard in Journey songs when Cain joined the band.
Once I could sing while comping the chords, girls would come and sit next to me on the piano bench. No greater motivator than that to a sophomore in high school. Then they would sing along as well.
Learning guitar was a different motivation for me. I’m glad I learned chord theory from my piano teacher; as it eased transition to doing the same on guitar.
Work on those inversions for simple I IV V sequences first until you can do it in all keys, and starting the sequence from all of the inversions