First check the action that corresponds to the error id, if everything is ok with it then check the if conditions that are above this action and most likely there is a syntax error there. There is an old bug in bas when the id indicates an incorrect error number
@Fox thank you for your reply. I want to simulate a shortkey keyboard input. Like CTRL+V which works with <CONTROL>v and it leads to pasting. But <MENU>g or any other shortkey functions with <MENU> doesn’t work. Which leads me to thinking that<MENU> is faulty.
It may not work to enter characters via "alt", but that's not what I asked. I asked why do you need exactly this kind of data entry? What is the ultimate goal you want to achieve?