This question already has an answer here:
I'd like to create custom layout for Android 2.3 keyboard. Where do I start? Currently I don't have any experience in Android platform.
Is it possible to hack the existing keyboard layout so that I will not have to create a new one from scratch?
You could refer to if you still havent resolved this :)
http://tutorials-android.blogspot.com/2011/06/create-your-own-custom-keyboard-for.html
http://developer.android.com/resources/samples/SoftKeyboard/index.html
http://developer.android.com/reference/android/inputmethodservice/Keyboard.html
http://developer.android.com/reference/android/inputmethodservice/KeyboardView.html
Read about creating an input method on the android dev site, specifically the Soft Keyboard example.