I'm not so sure noise would be a major issue, especially if you mounted the PCB relatively near the keyboard. say within a foot or so. Lead length would be around 2' max. MIDI is fairly robust and careful wire routing should work.
You could do a test by extending the wiring from several contacts and see what happens. If you are not familiar with matrix switching, it would serve you well to do some homework. Essentially, it's not that complicated. Most circuits use a system of 8 key contacts per 1 common and they are laid out sequentially. In other words, for every 8 keys, there should be 1(separate) common bus. The second group of 8 keys are connected key for key to the first group of 8, but have another (separate) common, and so forth.
A search of such products will show this much clearer. I have some circuits at home. When I get back I can check if you haven't already found one. Don't be confused by the other circuits on the PCB, the bottom line is, when a (keyboard) key is pressed down, a single connection is made. You would just be extending that connection. You can download a free program
http://www.midiox.com to verify what is happening with the MIDI messages. There is an equivalent program for MAC's ,
http://www.snoize.com/MIDIMonitorThis isn't rocket science and definitely has been done by others. Write down everything you do. I sometimes take a photo of a PCB before doing a mod. Another suggestion is to connect the MIDI output from the Casio to your computer and use one of those MIDI programs to see what MIDI messages are being sent (by the Casio). Log those for future reference.
Rgds,
Ed