Minor bugfixes, and code tidying
Main change is addressing the autoRepeatPress behaviour that was actioning even if not enabled. This was fixed in July 2022 but never made the last release.
Thanks @steiraa for catching the autoRepeatPress issue and @mathieucarbou for the code tidying suggestions.