Added rotate functions and more keys.