The muscles in your neck become tight due to keyboard work, and the pain radiates to your wrists. It’s often misdiagnosed as carpel tunnel or similar.
As I searched for info I came across a litany of temporary solutions that scared me: ice, anti-inflammatories (some people popping many ibuprofen or similar per day), wrist braces, expensive surgery.
When I started stretching, I could barely move my head to touch my ear to my shoulder. My neck was incredibly stiff. Do this test yourself.
Stretch your neck out, multiple times per day. 30 seconds or more per stretch, and there are 4 really core stretches. There is a set of stretches I can share via PDF in a PM. I should put them on a website or similar.
In addition, take many micro breaks throughout the day - relax your arms to your side, let your shoulders come back. Just let the blood flow. These micro breaks can be only 15 or more seconds.
Other things people suggest here can help - ergonomics (chairs or desks, mice, speech-to-text programs), working out, etc.) but in my opinion the source is tight muscles in your neck.
I learned all this from Rick Mahaffey of Peninsula RSI in the Bay Area. His practice is not there anymore, but he changed my life and I’m sure the life of many other keyboard workers with his simple and cheap method of stretches. For a while he was a go-to for local FAANG insurance companies when workers had RSIs.