P E N C I L
Login
DOM & EVENT
  1. Listen to event keydown
    https://jsfiddle.net/wnbnx7qb/1
  2. Create element from html
    https://jsfiddle.net/greensuisse/v4t14pus/1
  3. Traverse
    1. elm.firstChild
  4. Selection handler http://jsfiddle.net/timdown/jwvha/527
    1. sel = window.getSelection()
    2. sel.rangeCount  = 0 for no selection
    3. sel.getRangeAt(0)
  5. elm.style['left']='10px'