[CONNECT] set callback function when KEYIN queue element processed

I develop plugins for the OpenCities Map PowerView CONNECT Edition application with C++.

From one of my plugin I use the mdlInput_sendKeyin() function to trigger a feature in another plugin developed by me also. I want to log every keyin commands which was sent in the plugins.

In the MdlMain() function of each plugins I tried to use the StateCallback::SetKeyinFunction( onKeyInEvent ) function to set my callback function where I implemented the logic which do the logging related stuff.

Unfortunately my onKeyInEvent() function is never called.

How can I make this callback functionality working?