reset react and adding global keydown events.. using for login esc key