I might suggest a 2-phase approach:
Get an existing older mechanical keyboard, one with some room inside, and work out all the non-keyboard stuff first like the raspberry pi, wireless, wired connections, etc, so that you are confident with that whole realm, apart from the keyboard-building bit.
Once you have all that humming along reliably, build your home-made keyboard to transplant it into.