Sorry for the click-bate title... Is there any way I can bind a keyboard stroke to some event? For example, during the execution of some program, if the user all of a sudden presses, say, the 'a' key then some variable gets assigned with some value. I guess this would require some kind of listener that one can assign to specific keyboard keys? Thanks!
