turn around while pressing left mouse click

My code is working in first click right click and it doest stuck corner, but after release right mouse button, second click doesnt recognize input, double click right cllick it recognize but it doesnt turn around, when pressing left and right mouse bottun, it turn around but it stuck corner, can anyone help


type or paste code here