Fetching details from the dictionary...
what one has a mind to do; what one feels like (doing); being so minded; (with) that in mind
「その気」 has another reading with different meanings.
homosexuality; interest in the same sex