I have noticed that for some reason the index of the list box is not in order, the index does not seem to represent the number of the item in the list:
Code:
Last Keypress: 40
Selected: 0, last Item: 4
Selected Item: 1
Last Keypress: 40
Selected: 1, last Item: 4
Selected Item: 2
Last Keypress: 40
Selected: 2, last Item: 4
Selected Item: 3
Last Keypress: 40
Selected: 3, last Item: 4
Selected Item: 4
Last Keypress: 40
Selected: 4, last Item: 4
Waiting for key: 40, Key pressed: 40
End of list.
Selected Item: 1
Last Keypress: 38
Selected Item: 0
Last Keypress: 40
Selected: 0, last Item: 4
BUILD SUCCESSFUL (total time: 1 minute 28 seconds)