changed the keydown event to keyup for al_link input