Add the missing autoclose feature to the keyboardfactory...

... as the comment says.

@jmarshallnz something like that?