Move the character and key tables into their individual files.

Part of #192.