Spacebar as Modifier for CAD & design programs

As a user of many design programs, I would like to be able to attach the spacebar as a modifier to a mouse click + drag in specific applications.

Spacebar + mouse click + drag is an often used to pan the page in many 2D design programs and toggle pan/orbit in CAD programs (sometimes spacebar + scroll wheel).

I would like this so that I can create a keyboard that outputs "d" when I press Space + k and "v" when I press Space + n.

This way I can easily type with one hand.