You need to check GUI_MSG_CLICKED as well.  I suggest instead splitting up this if instead.  i.e. check for clicked, grab the control ID, then if/else on the control ID.  Inside the block for the list do the additional ACTION_SELECT_ITEM check.