Bug 960946 - [Keyboard] Change to the new sendKey API

see bug: https://bugzilla.mozilla.org/show_bug.cgi?id=960946