I don't know how or why, sometimes, suddenly, for no apparent reason, key repetition is disabled.
If I run this command:
xset r on
or if I wait half an hour, the key repetition starts working again but after a few days the problem suddenly returns.
I think it's because xorg or another system program suddenly crashes, but that's just a guess.
I have no idea of the cause of the problem, so I ask whoever has the same problem, if they have been able to diagnose it.
I use Ubuntu 20.04 LTS Desktop 64-bit freshly installed.
There is a similar problem in Ubuntu 8.04 LTS, if it matches my problem, it would mean the bug hasn't been fixed for 12 years!: