Add modified SoftKeyboard implementation from android-sdk/samples/android-8/SoftKeyboard/.