Kodi EventServer – How to send Key Presses

Hi,

So I started developing an app for android to act as a remote app to control KODI, mainly using the JSON/RPC.
However, reading in the forums I found that the JSONRPC can only send entire bits of texts in the KODI virtual keyboard, and it overwrites the currently set text.

I’m trying to work with this by sending the keystrokes through the Event Server similar to how it’s done within Yatse (great Kodi app, warmly suggested).
I found the XBMC EventServer Java classes found here https://github.com/xbmc/xbmc/tree/master…entclient, which do seem to work good when sending Buttons to the EventServer.
Problem is that you can send the keystrokes by having something like this:

eventServer.sendButton(“KB”, “f”, true, false, false, (short)0, (byte)0);

Could anyone please advise how I can set the EventServer to send KeyStrokes, thus have it write text in the KODI virtual keyboard window directly?