Suddenly this afternoon a very strange thing happened to my system.

In virtually all apps on my machine, a black outline appears around a region: typically it's the region where input might be expected, but not always. Sometimes in Safari it's a region at the top of a page, and when the page is scrolled it moves out from under the box (whose location doesn't change as the content under it is scrolled). This is really a nuisance ... it happens not only in Apple apps (Safari, Mail, Finder ...) but in others too (FireFox, AquaMacs [box around the scroll bars at the side of the window], TeXShop [box around text drawn in the previewer], etc.). The box only appears in one App at a time: when I switch from one to another as the active window, the box remains in the old one until I do something in the new one, at which point a new box appears in the active window (and the old one disappears). And sometimes the box goes away for a while, until I do something in some app that causes it to re-appear.
This seems to be something that only happens in my account: when I log in as Guest, there are no boxes.
Logging in and out -- even restarting -- doesn't alter it.

The only event I can think of that led to this was switching from one wireless keyboard to another, at which point I hit a bunch of random keys on the new keyboard to wake it up. Does this sound like something that could actually be triggered by some keyboard "shortcut"? Since it doesn't seem to limited to any one app or group of apps, I assume this is something at the system level, but I can't find any preference that seems relevant.
Any help will be much appreciated.
All very puzzling. Running 10.5.4 on a dual-quad MacPro with 30" Cinema Display.