Fix for rotate not working with keys