Add key to input element