From what I understand this is quite easy and you don't have to use reinforcement learning. You can also use standard ANNs.
For as long as you want:
If Touch (sensor. Maybe a button???) == 1
Update network (the network should output the probability of crashing in the next step. You can also use markov chains for multiple steps (...