Added rotation and key functionality.