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