keyAdapter deprecated