Fix IE issue.

IE doesn't support the javascript properties:
input.selectionStart
input.selectionEnd

Added a 3rd party lib to determine what text is selected / highlighted when a key is pressed.