[DF-5081] Fixed detecting closing keyboard by itself