Fix issues with printing characters when typing too fast