SelectedStyles update code in keydown handler.

It seems the keydown handler should update SelectedStyles periodically when a key is held, and stop when keyup. While keydown event is continually triggered when pressing a key, I think we should check scope.bUpdateSelectedStyles to prevent new events being put in queue before keyup.