It might be better to respect the system auto-key-repeat settings.