Mean sensitive, mean equicontinuous and almost periodic functions for dynamical systems