I did leave the cord plugged in. But really although the cord was plugged in I was careful to pack the keyboard very gently or at least what I thought was gently between cushions of clothing.
It's all about leverage. By leaving a half inch lever on a notoriously fragile connector any lateral force in any direction would apply stresses that could not be sustained. The clothing would cushion against shocks but that's not the problem here. Any pressure on the plug, even gentle and gradual pressure could do enough damage to wreck the connection.
Would an electronics repair person be able to fix this?
Yep simple solder job to take off the old connector and put a new one on.
If you had the tools you could pretty surely do it yourself.
A couple of dollars of parts but the labour costs are going to make this a slightly expensive learning experience.
I guess let this be a word of caution - be very careful with the connector to the cord
Yep [strike]micro[/strike] mini USB plugs have always been fragile little rotters and need to be treated like they are made of glass.
Fine while sitting quietly on a desk but any lateral force (including carelessly rough connecting/disconnecting) can kill them with consummate ease and make your device (external drives, phones, keyboards, etc) an expensive paperweight.
EDIT: fixed mini/micro brain f@rt