I discussed it with an "expert" recently. He said it there is no reason it wouldn't work with a keyboard, because it "hears" the chord and uses that for interpreting harmony. However he though it would probably not be as accurate as it is with guitar.
I have a brand new Harmony M I will sell for $108.
_________________________
DonM