Synchronize getch calls to reduce screen glitches