/// <summary>
 /// Handles the KeyDown event of the Window control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="KeyEventArgs"/> instance containing the event data.</param>
 private void Window_KeyDown(object sender, KeyEventArgs e)
 {
     try
     {
         newGameViewModel.KeyDown(e, ref timer);
     }
     catch (Exception error)
     {
         errorLogViewModel.LogError(error);
     }
 }