Mathkeeb is a mechanical keyboard “designed specifically to aid in efficiently typing mathematical expressions while writing equations, [and] programming . . .”
Apogee Industries used to sell kits for this but apparently has gotten out of that business.