Added blur event to keyup event (sometimes last letter was not saved.)