The event name alone should be enough to tell if a key is pressed down. Perhaps use regexp for quick lookup. Double-check if this is not needed because of diagonal processing.