option.code set with strings

Allows option.code to be specified using strings, as well as Keystroke values.