Hi Guys,
I am trying to make a Virtual Keyboard which supports SCIM. How would I go about detecting key presses in such a way that it shows me the various possibilities of japanese/chinese characters for the keys i pressed. Since a normal virtual keyboard just sends the key pressed I was wondering if there was a workaround for this.

I looked at the various virtual keyboards both here and at other places and none of them have tackled this problem yet.

Thanks