Rotating an object on command

Thank you so much for looking into my code and helping, I got it to work now!