A long press, or a recent apps button press is. You'll need to look at key events, either by label (I think app switch press is APP_SWITCH) or by code (probably varies by device).
One way you could get around this is by destroying the scene. After it is created, wait one second, test the scene, if the result doesn't match visible, destroy the scene. This will allow it to reappear once activated again.
Hope this helps.
Should mention, this needs to be looped like so:
A4: Perform Task [ Name:Display Scene Calendar Stop:Off Priority:%priority + 1 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: ] If [ %Cal_selected(#) = 0 ]
A5: Wait [ MS:0 Seconds:2 Minutes:0 Hours:0 Days:0 ]
<testing>
A6: Test Scene [ Name:Select Calendar Test:Status Store Result In:%scene ]
A7: Wait [ MS:0 Seconds:2 Minutes:0 Hours:0 Days:0 ]
A8: Goto [ Type:Action Label Number:4 Label:testing ] If [ %scene ~ visible ]
A9: Destroy Scene [ Name:Select Calendar ] If [ %scene !~ uncreated ]
In this example, %Cal_selected() will have a value once a selection is made on the menu element for the scene. This means, if the user made the selection and just selected the home button instead of exit everything works normally as if the user selected exit. If no selection was made, the scene is destroyed to be displayed again when the user selects the function.
Hope this is what you're looking for.
This documentation states otherwise.
http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_HOME
But, wise man say, "can't argue with results".
Everything else though.
As I had tried every version of your previous post, I suspect the latter is much more likely. I'm using stock HTC sense 4. I like the sense widgets more but nova is a nice launcher.
It's reassuring to note that the tasker documentation regarding key_events in scenes is correct. (Well, maybe not for all users. I still believe the developers link and reference is legitimate.) And tasker does reference a higher link within the same page of the website.