Add link and decode key to input