In your automation, you are passing the eventname into the wrong parameter. "paste", "select", "change", etc... are all going into parameter 1 (type)... so it is not executing correctly. They need to go into "parameter1" instead of "parameter0".
Did you try testing the script at the bottom of the document I attached? There probably needs to be text in the textbox before it activates...so set the text first. If in automation... use the text property and set to something arbitrary. If in F12 Developer Tools Console, set the value text property, like target.text="a"; or target.value="a"; then try the raiseEvents function with the noIdeaEvents and the keyEvents on that element.
Everything is easier to test outside of Studio... I really recommend first testing everything in the F12 Dev Tools... leave Studio out until you figure out what you need.