[KBSwitch] Support configuring key repeat, closes #1426.