Move key_table to separate file.