- Electron version: 1.4.0
- Operating system: OS X 10.10.5

I've been using the following code to send Tab key events to a webview in my project:

``` js
const webContents = webView.getWebContents();
const keyEvent = {
  type: 'keyDown',
  keyCode: 'Tab'
};

webContents.sendInputEvent(keyEvent);
```

I have had no issues with this until the recent update to 1.4.0.

The last version the above code works in OS X is **1.3.7**. I've tried this with the latest versions of Electron (1.4.1 & 1.4.2) with the same results.

Am I doing something wrong here? Is this a known issue?

atom/common/native_mate_converters/blink_converter.cc
blink::WebInputEvent::Modifiers* out) {
    std::string modifier = base::ToLowerASCII(V8ToString(val));
    if (modifier == "shift")
      *out = blink::WebInputEvent::ShiftKey;
    else if (modifier == "control" || modifier == "ctrl")
      *out = blink::WebInputEvent::ControlKey;
    else if (modifier == "alt")
      *out = blink::WebInputEvent::AltKey;
    else if (modifier == "meta" || modifier == "command" || modifier == "cmd")
      *out = blink::WebInputEvent::MetaKey;
    else if (modifier == "iskeypad")
      *out = blink::WebInputEvent::IsKeyPad;
    else if (modifier == "isautorepeat")
      *out = blink::WebInputEvent::IsAutoRepeat;
    else if (modifier == "leftbuttondown")
      *out = blink::WebInputEvent::LeftButtonDown;
    else if (modifier == "middlebuttondown")
      *out = blink::WebInputEvent::MiddleButtonDown;
    else if (modifier == "rightbuttondown")
      *out = blink::WebInputEvent::RightButtonDown;
    else if (modifier == "capslock")
      *out = blink::WebInputEvent::CapsLockOn;
    else if (modifier == "numlock")
      *out = blink::WebInputEvent::NumLockOn;