[SOLVED]bge.events.CUSTOMKEY parsin question

Greetings. I’m scripting a system that loads the assigned keys from a config file.
I have succesfully loaded the variables, but my issue is when trying to parse the custom code with
the following style:

Working code, but not how i want it to be:

bge.events.WKEY

Not working, but a example of the thing I am trying to achieve:

bge.events.forward_key

Where forward_key would be a variable name (just an example).

How should I parse my custom value to replace the “WKEY” part?

Nevermind, stupid me. Worked with:

keyboard.events.get(bge.logic.globalDict["variables"]["moveForward"]

)