added left an right rotations by UP and DOWN keys