The keys section was way too big; this splits it up into more manageable pieces, adds a nice flow chart to show how key events are processed and adds an example of using the new key tables feature.
Since the composition state isn't strictly tied to dead keys, use a name that better reflects that.