Fix issue with cursor blinking and autorepeat causing issues