Multiple bindings for same key

This should allow you to create keyup, keydown and keypress on the same key. Also, cherry-picked joshbowdoin's pergeHotkeys fix with an added "if hotkey" check in there.