changed keypress to keydown, enabled localStorage to save list data