In my list box i would like to highlight the selected entry

I want it to stay "selected" until the user clicks again or selects another entry.

When an entry is selected I can change the color but once its unclicked the 
entry reverts back.

Is there a way to do this ?