It depends on the design and print material. You can search for pre-made designs and 3D print them yourself or you can find cases fully 3D printed and can just buy them online from somebody. You can find designs from websites like yeggi (
https://m.yeggi.com/q/keyboard+case/). You find 3D printed cases on Etsy.
Here are a couple of quotes I found.
"Factors that affect quality
Design/fit: precise tolerances and mounting points are critical for stability and screw alignment.
Printer & settings: layer height, infill, wall thickness, print orientation, and post-processing affect strength and surface finish.
Material: impacts rigidity, weight, finish, and ease of printing.
Post-processing: sanding, vapor smoothing, priming/painting, or resin coating improve appearance and feel.
Mounting style: tray, top-mount, gasket, or sandwich designs change typing feel and required rigidity.
"
"Common plastics — tradeoffs and recommendation
PLA — easiest to print, good surface finish, but brittle and less heat-resistant; fine for prototypes or decorative cases.
PETG — tougher and more impact-resistant than PLA, slightly flexible, good for durable cases; moderate finish.
ABS — stronger and heat-resistant with good long-term rigidity, but warps more and needs an enclosed printer; can be post-smoothed with acetone.
ASA — like ABS but better UV/weather resistance; similar printing challenges.
Nylon (PA) — very strong and slightly flexible, excellent for durable thin-walled parts but hygroscopic and can be difficult to print cleanly.
TPU / flexible filaments — used for gasket mounts or flexible accents, not for whole rigid cases.
"
And it looks like PETG might be more up your alley. Look for for cases printed from that.