changed map update from click event to keyup event