Do to another object on the layout
or just use Go To Field 
with no field specified. This is the script equivalent of clicking a blank part of your layout with your mouse.
Perfect, that does the job, thank you! I had already tried to go to a different object, but then that one would get selected, which I din't want.