handle sending keys to a date input element