xcb.c: add key support