The most important thing is not to wait to get treatment. Also, what works for you depends on how you have injured yourself so try out all the different things available and come up with your own setup. And if you're employed, getting on worker's comp has been a life saver (and probably saved me a few thousand dollars also, not to mention regular insurance maxes out after a small number of therapy visits). Some areas (bay area for example) have support groups. I haven't been but I hear they can help point you to good doctors / therapists. There's also a bunch of literature, books and websites out there with more detailed info than I can provide here (search for "repetitive stress injuries").
More details here: https://henrikwarne.com/2012/02/18/how-i-beat-rsi/
1. use proper posture. Don't rest your wrists on the table as you type. Make sure your chair is an appropriate height (or your desk itself, if you're standing).
2. imo Dvorak is much more comfortable (it's not about typing speed).
3. Take up rock climbing. Seriously. It's the best exercise for your hands/wrists that I know of. Any time I've started to have hand/wrist pain I've made a point of going to a rock gym a few times and it helps fix the problem. I wish I kept up with it more.
As mentioned in my sibling comment, this was _THE_ most important thing in getting rid of wrist pain. Not even a pad helped, it still compressed on my wrists.
I suspect lifting weights already improves this generally, as I have periods of much less pain which coincide with being more active.
If you have a body pain problem, "see if lifting doesn't help" is good advice, but you have to be careful, i.e., don't be a dumb gymbro and load on more weight than you know you can hamdle with good form.
Do some heavy lifting now and again, so that the hands are used for real stuff.
Joke aside, I was mainly thinking about wrist problems. I think any normal sized, model-m layout or possibly split-layout keyboard with non-linear quality switches is ok.
If the finger joints hurts, I suppose a lower activation force might be good - I guess one might be Cherry MX Brown, but I don't personally like anything else than buckling spring...
The main message is that in my experience, laptops in your lap is the worst, and exercise helps.