Commit some changes to dismiss keyboard.