MZ Using script to call a Conditional Branch

The core reasoning for wanting to use script is to include more keyboard inputs than the limited selection the editor has. As someone with 0 programming knowledge, I took a look at the .js file for Common Events & tried to replicate that event via the script function.
Spoiler: Script Attempt
Screenshot_1.png

Is it not possible to recreate the programming like that?
The "q" is already recorded to the q keystroke and have verified that the game does recognize it via Cae_KeyboardInputs's plugin.
what you have there is no code, because the common events are json files, not js (javascript) files.
what your script attempt has is data structures without any command.

what you want can be done, it just requires an entirely different approach.
Best way would probably be to use the conditional branch script condition with a script command that checks the keyboard input itself.
Ahhh thank you very much! That makes sense.

Original thread: https://forums.rpgmakerweb.com/threads/using-script-to-call-a-conditional-branch.127319/