only refresh listing if needed

If you are at the top of the interactive listing and press the `$UP` key, it currently refresh the terminal: clear then compute `display_versions_with_selected` but it's not needed

Same for the `$DOWN` key at the bottom

This simple fix prevents some unnecessary refresh and calculations