screen has turned upside down

What operating system are you running, i know some older versions of windows and Mac OS had support for screen rotating through hotkeys. For vista or XP try ctrl-alt-up arrow or ctrl-alt-down arrow and see if that flips you back to the proper orientation.

Edit: There also appear to be settings in Catalyst that support flipping the screen into pretty much any orientation.