Fixing the bug for cube manipulation using the keyboard when the cube is rotated.