// TODO - change to events
        public void OnKeyPressed(char key, SysKeys?sysKey)
        {
            if (key == 'q')
            {
                CloseAplication();
            }
            else if (sysKey != null)
            {
                KeyPress.FindAndExecuteCommand(sysKey.Value);
            }
            else
            {
                KeyPress.FindAndExecuteCommand(key);
            }

            BlinkingCursor.AddBlinkKey(key, sysKey);
        }
        // TODO - change to events
        public void OnKeyPressed(char key, SysKeys?sysKey)
        {
            if (!ViewModelContainer.ResultsDbViewModel.IsVisible)
            {
                if (key == 'q')
                {
                    CloseAplication();
                }
                else if (sysKey != null)
                {
                    KeyPress.FindAndExecuteCommand(sysKey.Value);
                }
                else
                {
                    KeyPress.FindAndExecuteCommand(key);
                }

                BlinkingCursor.AddBlinkKey(key, sysKey);
            }
        }