void MainWindow_KeyDown(object sender, KeyEventArgs e) { if (e.Key == Key.A) { readyforgesture = true; colorBox.Background = new SolidColorBrush(Colors.Green); } if (e.Key == Key.C) { _ink.Strokes.Clear(); } }