include rfb/rfbconfig.h, and a slight keyboard handling improvement