Hide keyboard after hiding custom key length field