madrobby/keymaster — pull request #75 by Burgestrand (2013-01-24 21:28:46+00:00)
Title: key descriptions (e.g. 'up', 'space', etc) in key.isPressed()

Issue: key.isPressed() previously could only accept single-characters when given a string, so keys such as "up", "delete", and the like needed to be supplied with key codes. It’s resolved by making key.isPressed() understand what "up" is.

No support for combined keys or modifiers in isPressed() in this patch, but I could see how that might also be useful.

Why: I’m writing a game, and the key(keys, fn) handler reacted way slower than what I needed, so I am forced to check for key.isPressed() when I need to react to key presses, and I really don’t want to keep my own map of keys to keycodes when keymaster already has one.