Virtual keyboard problem

Could you elaborate?
Something like

String   str = getChar(keyCode);

is undefined.