updating typescript defs for sendEnterKey