I'm intending to get rid of these hacks as soon as I figure out why the keycodes on the event aren't the keys I'm typing.