you could totally cheat by putting sensors under the keys on the phone, and running them through one of the many sensor -> audio , sensor -> midi interfaces.... ;)