Support for international keyboard layouts.

Thanks to MacGyver.

Addresses Issue #269.