Added sync and debugging printouts to KeyStatus.