XLib HalfKeyboard implementation