You definitely had a bud luck. But do not worry everybody sometimes has it. One time a I was making a big assignment for my university project and during writing (project was almost done) I went to kitchen to drink something. When I went back I saw my cat sitting on my backspace button. Everything was gone.