Implemented a proper auto repeat