how to bind another trigger to autocomplete

how to bind another trigger to autocomplete

hi there,
i'm kinda new to this and i'm using the autocomplete feature that works great using this :
 $(function() {
        var availableTags = [];
        $( "#tags" ).autocomplete({
            source: availableTags
        });
    });

when i type it's autocomplete.
the question is how do i make it work when i'm using a virutal keyboard that i made from div's that add letters directlly to the tags inputtext ?