Added KeyStatus class