Repeating key can be a software issue. You can use control panel option for the keyboard and adjust the Repeat Delay rate to find if it solves the issue. You can follow the same steps in Mac as well. If the software is not a culprit, you can follow the other means of physically cleaning the keyboard.