Typescript-backbone: do not create item on empty input

This fix was missing for #919.
e.which

and should use the key constant