Simplify copy lines, from Keith Amling.
Change key-table to mode-table to allow for some future work. From Keith
Amling.