@foone there is a raspberry pi 400 which is an actual rPi in a keyboard (i've got one next to me as I type this), so it's not impossible.. but DIY sounds much more fun.
(FWIW, I'm becoming very keen on a Z80 in a keyboard form again, after many decades without one ;) )