The way I'd solve this is a little more involved:
obtain a short micro usb female to male extension cable with a "comes out of the keyboard and turns left" design
take the keyboard apart
Which way you go now depends on how much room there is inside the case and the general construction;
move the circuit board that the connector is on so ...