The remote sends a special repeat code. The driver in the kernel will then just resend the button that was last pressed and set a flag that it is repeated.

Till