input: Write a python function to rotate an object's position based on arrow key input.
  assert arrowKey(None, renderStack, 3) == None  # Check right arrow
  assert arrowKey(None, renderStack, 2) == None  # Check left arrow
  assert arrowKey(None, renderStack, 1) == None  # Check up arrow
  assert arrowKey(None, renderStack, 0) == None  # Check down arrow
output: def arrowKey(obj, renderStack, key):
      if key == 3:  # Right arrow
          # Add logic for rotating right
          obj['rotation'] += 90
      elif key == 2:  # Left arrow
          # Add logic for rotating left
          obj['rotation'] -= 90
      elif key == 1:  # Up arrow
          # Add logic for rotating up
          obj['rotation'] = 0
      elif key == 0:  # Down arrow
          # Add logic for rotating down
          obj['rotation'] = 180
  
      # Ensure rotation stays within 0-359 degrees
      obj['rotation'] %= 360
      
      # Render stack logic
      renderStack.append(obj)
      
      return None