Fixed bug that prevented key repeat prevention to work.