Ticket0442: Left/Right arrow keys allow users to jump lines
* To refactor
  - Created a new function (jumpFocusEndOfLine) just to be able
    to pass an arg to setCursor.
    Refactor event triggering so you can easily pass additional arguments
  - Add fallback for older browser