private void OnTransactionListBoxKeyUp(object sender, KeyEventArgs e) { if (e.Key == Key.Enter || e.Key == Key.Return) { if (Controller.EditTransactionCommand.CanExecute(null)) { Controller.EditTransactionCommand.Execute(null); } } }