I was wondering if there was a way to save keycodes in a variable that can be used in a function comparing that saved variable with the key that was pressed to trigger the function.
I.e - I am trying to save a keyCode in a variable for use in a function that checks if the key pressed is the same as the saved keyCode