Adding option to toggle keycode vs charcode use.