Keyword tigger

I am migrating my editor from monaco to codemirror. I am not able to find something similar to editor.trigger() in codemirror where keypress triggers an action (I want it to show hints, autocomplete).

I am not familiar enough with the Monaco interface to know what you are trying to do here.

I’m trying to do something like this. Any hints on how can I go about doing this would be useful.