How do I move up and down a file listbox using two buttons?

Note when it reaches the end of the list it should go to the first.