Behaviors: how to send InputEvents through WASM calculator code?

In DevMode, menu Windows | Behaviors, tab InputEvents, I can see a number of bindings. Is there a way to send those in yellow and purple through WASM calculator code? If so, what is the right syntax? I expect something like “1 (>B:xxx)”. I know that there may be other means, but in some third-party aircraft and in some cases, I do not have any other choice to try to animate a control.