It seem like xlib widgets are completely mouse-oriented. Applications that uses xlib only like "xpaint" "xmessage" "xcalc", you can't use the keyboard to press the buttons in "xcalc" and "xmessage", and in "xpaint" you can't use the keyboard to popup the menus, or use the keyboard the switch between the widgets in a dialog.