Note: I might end up using piano and keyboard interchangeably in this answer even though I probably shouldn't.
[I]s the same possible on keyboards, I as a keyboard player can't figure it out. Trying to understand if that is possible in terms of tuning rather that chording.
Generally no. However, I will say that some digital keyboards offer a transpose function that does something similar to what you describe.
That said, I would still say that the answer is still no generally speaking because 1) this feature isn't necessarily standard on every piano and 2) I've never heard of this at all on an acoustic piano or keyboard instrument (maybe there's a way to do it on an Organ or something, but I've not heard of it).
There's good reason for this, but I'm getting ahead of myself slightly.
I mean how to achieve the same way of playing chords, and notes, and intervals with repeating notes within the same octaves, but with different tones on keyboards according to a tuning based of the guitar tuning.
Doing something doesn't really make sense on a piano or other keyboard instrument (indeed, some of the piano players I've seen comment on this question seem confused). This primarily has to do with the way a keyboard is layed out.
In a standard piano tuning, playing a C Major chord and an A Minor in root position requires making the same "hand shape"--for lack of a better word. Even though one is a major chord and one is a minor chord, because of the layout of the keys on the piano, you make are forced to make the same physical shape with your hand (i. e. playing white keys with your thumb, middle finger, and pinky). There is no universal "major chord shape" on the piano, nor it there a universal "minor chord shape" on the piano. The shape your hand makes when it plays really depends on which specific chord you are playing (Major/Minor/Augmented/Diminished and root note).
Thus, there is no real way to play the same hand shape in a different key on the piano.
As to playing in tune with a D tuned guitar, a Piano can certainly do this. Pianos have a very wide range and can play almost anything you want it to. You can certainly transpose a song into a different key. There's just no way to preserve the same hand shape when you do.