Pass key to inputChange() in directive.