Every major or minor triad on the piano is a pattern of white and black keys. There are four patterns. The trio that holds the chord letter tells you which one.
The three main chords of C major — thousands of songs stand on them. Major = all white.
Hidden in the word idea. Minor = all white. Major has a black key in the middle.
Take the chord letter, skip one, take the next. On the white keys that is “every other one”.
The pattern says which skeleton note moves to the next black key. Take the pattern from the sheet below.
Hover a cell to light the same pattern. Click a chord to put it on the keyboard.
Rule: major and minor simply swap trios — crosswise. Black-key chords (D♭, E♭, A♭ and C♯m, F♯m, G♯m) are those same trios shifted by a semitone: pattern black-white-black.
You see the name — you pick the pattern. A few minutes a day, and you stop thinking about it.