[NW] Preparing to merge

Not Working
reference error
removed event overrides
pretty-fied
removed browser dependent .keyCode
Removed independent code
deleted redundant code
fixed reference issues
switched to switch
wrong reference
{Esc} goes back now