There are two ways you can use recurrent neuralnetworks.
If you want to use shallow network which have less complexity, you can start withlayrecnetortimedelaynetto model recurrent neural networks. Here is anexamplefor getting started withRecurrentNeural Network
If you want to use deep neural network for your problem statement,lstmLayeris useful for modelling time dependence in the sequence data. Here is anexamplewhich tells about how to design Long Short-Term Memory Networks.