Revert "Change to using KeySyms rather than keycodes to store to-keys"

This reverts commit b1f0a0601b10fdc76e19d858fe10c820561b6a09.