i am having trouble figuring out how to create a variable, and determine whether or not the value of the variable is equal to a specific value after the specific key is pressed.
Develop games in your browser. Powerful, performant & highly capable.
This is a very basic and easy task, have you tried studying any examples or tutorials?