void SetDirty () { lock (typeof (KeyHandler)){ if (dirty) return; dirty = true; new Timer (DirtyTimeout, null, 3000, Timeout.Infinite); } }