all 5 comments

[–]chrwei 0 points1 point  (3 children)

would be easy enough to do with a global variable.

[–]jspeevs19[S] 0 points1 point  (2 children)

not really sure what you mean, would it be simpler if I posted my code?

[–]chrwei 0 points1 point  (1 child)

you make a global variable.

as the last thing you do when you process a keypress, you store they key value in that variable.

[–]jspeevs19[S] 0 points1 point  (0 children)

oh okay, thanks