Welcome.
This may help.
CHORDS
A Major chord consists of the Root note, the 3rd and the 5th.
A minor chord consists of the Root note, a flatted 3rd and the 5th.
A three note chord is referred to as a Triad.
With a C Major chord the C is the Root, the E the 3rd and the G the 5th.
Major chords - play a C Major chord, hold down the keys C E & G for C Major, now look at the number of keys between each of the held keys. You will find three unplayed keys between the C & E keys and two between the E & G, this is the same for all Major chords.
Minor chords - play a C minor chord, hold down the keys C Eb & G and as above you will find this time two and three unplayed keys between the held down keys.
Diminished chords - play a C diminished chord, hold down the keys C Eb & Gb as above you will find two and two unplayed keys between the held down keys.
In the above descriptions the finger counting works for any Root note
CHORD INVERSIONS
Root chords - C Major is (left to right) notes C E G played together.
1st inversion is E G C
2nd Inversion is G C E
Exercises.
Play a C Major with a single hand starting at Middle C (called C4), now play C Major starting on C5, then again on C6.
Now play Major chords C F G in sequence moving from C4 right along the keyboard, notice the amount of movement you have to do.
Now look at playing the same sequence using chord inversions and work out the most efficient way of playing each chord.