I'd say most keyboards with a PCB should be ok in either carry-on or checked luggage.
Hand-wired: I'd take as carry on if possible, otherwise, make it accessible. Also, some airports have a check-in counter for oversize / hazardous materials where your suitcase gets scanned while you're there, might be a possibility.