I think it makes more sense to create separate methods for `moveSelectedEntry` and `copySelectedEntry`. There is some code duplication, but it will make the code more approachable.