Copy in the enable accessibility code from KIF
Consolidate some keyboard code