As my understanding, The key handling has to go to the Activity's onKeyUp first. Then hooked with some implementation we provide. So it has to be an API in runtime to be called by runtime client.

Please correct me if i'm wrong.