To handle events when typing and after searching:
$('.selector').on( "autocompletesearch", function( event, ui ) {
var text=$('.selector').val();
if(text[text.length-1]==',') //This validation will do the trick you want (ie: prevent to load everything after you type a ",")
event.preventDefault();
} );