I know there are a few hardware keyboard fans here, and some that build their own keyboards. Here's a walk though of one person's project. Looks like fun.
"Making My Own USB Keyboard From Scratch"
http://blakesmith.me/2019/01/16/making-my-own-usb-keyboard-from-scratch.html