Updated wm_core.key_down() so that it uses a dictionary of {keycode: method} pairs instead of a series of if...elif statements.