BEfore Update Dismiss keyboard function