forked from: Evaluating key codes with switch statement vs an array

