Fixed crash, simplified code.

- Now using VkKeyScanEx to simplify char -> vkey mapping.
- Fixed crash where chords without a vkey were assumed to have a string
value.