Fix inadvertetly resetting the virtual keyboard state.

When resetting the InputType for the password field the virtual
keyboards were also reset, so if the user was entering numbers, the
keyboard would reset back to characters.