Consolidate keycodes and modifier keys into single struct.