Convert key mapping to widget button?

Hello,

If everything works switch the input with a custom event, then in the widget add on clicked, the custom event, it should work.
I don t know much about mobile, maybe it s not that simple