Fixes a bug that some keys keep repeating