[Client] Improved synchronization during keyboard input