If we have XKB support then we should be using it to turn on the detectable auto-repeat; this allows avoiding the peeking trick that emulates it inside the event handling code.
We should try to abstract everything that is related with the key mapping to its own object, to avoid complicating ClutterBackendX11 any further.