I am using the below, standard (I assume) code to create a select interaction, add it on a map and take some actions when a feature is selected or deselected:
con