Depends on the keyboard. Most keyboards have “zones” of keys, imagine a square between 1, 3, C and Z, that’s one zone, maybe. But they’re only capable of sending one or two notes from each zone at a time. The manufacturer never really intended you to be playing chords on it
Older keyboards, the really clunky ones that use switches for each key, don’t work this way, and I could play chords no problem on an old IBM PS/2 keyboard, until I got fed up with it sounding like a small typewriter.