private void OnKeyUp(object sender, KeyHoldEventArgs e)
        {
            if (this.IsPaused)
            {
                return;
            }

            this.KeyUpEvent?.Invoke(this, e);

            activeHandlers.Remove(e.KeyEventArgs.KeyCode.ToString());
        }
        private void OnKeyHold(object sender, KeyHoldEventArgs e)
        {
            if (this.IsPaused)
            {
                return;
            }

            this.KeyHoldEvent?.Invoke(this, e);

            if (e.Handled)
            {
                string         key = e.KeyInfo.KeyCode;
                KeyHoldHandler handler;
                if (this.activeHandlers.TryGetValue(key, out handler))
                {
                    handler.Handled = true;
                }
            }
        }