private void OnKeyUp(object sender, KeyEventArgs e) {
try {
if (e.KeyCode == Keys.Escape && !e.Control && !e.Shift && !e.Alt) {
Logging.Write("Escape was pressed, terminating loading…");
_sharedCancellationTokenSource?.Cancel();
}
} catch (Exception ex) {
Logging.Error(ex);
}
}