Update keyboard from mozilla-central
Also listen to SelectionChange events in keyboard