Original Post
Currently I have a switch statement, one case for each key that does something and the corresponding actions is inside that case. But I want to be able to change the key that triggers the action on the fly, how do most of you do this?