* Translates linux key event to internal structure KeyInfo and returns it.
* @param event instance of XKeyEvent
* @return instance of KeyInfo
*/
static KeyInfo translateEvent(X11.XKeyEvent event) {
KeyInfo res = new KeyInfo();
int nBytes = 255;
Int8Pointer buffer = bridge.createInt8Pointer(nBytes, false);
buffer.fill((byte)0, nBytes);
CLongPointer keySymPtr = bridge.createCLongPointer(1, false);