Bug 1015541 - choosing a word suggestion after moving the caret changes
the wrong text.
 - Ignore selectionchange when there is pending key action.
Merge pull request #20750 from RudyLu/keyboard/Bug1015541

Bug 1015541 - choosing a word suggestion after moving the caret changes the wrong text
r=janjongboom