Great topic. – How to learn chords on a keyboard.
I played pro guitar for many years so when I turned to keyboard I tried to use the same method.
1-The most important chord is the I chord.
2-The second most is the V chord
3-The V chord going to the I chord is the most used
4-I like to add the IIm7 chord to my V chord
Example: I – IIm7 – V – I
In C major – C – Dm7 – G7 –C
I played these chords in one position as I did with guitar. Learn this chord progression starting with the I chord in root position. Keep in mind there are many common notes in the progression. Once you can play the progression without thought start the I chord in in the next inversion. Ex, CEG – EGC –GCE .
Once your hand has learned to make these moves you no longer have to concentrate, it just happens. This is one of the key points of playing without music.
Four note chords – My thinking. CMaj7 root position. Fingering 1 2 4 5. Move up one note Dm7 same fingering. Move another Em7, then FMa7, G7, Am7. All use the same fingering.
Many times when I have the I chord (C) for eight beats I play CMaj7, Dm7, Em7. Then back to the CMaj7.
All four note chords all the same fingering. This is a start.

Hope this helps, John C.