The actress talks about learning to be spontaneous on a set