How to return to the home screen with a terminal command?
am start -a android.intent.action.MAIN -c android.intent.category.HOME


More info about shell commands: an archived version of the AndroidWiki page