task priority of Panda's "built-in" tasks?

I want my task to run after the keyboard input task.
basically I want to allow to perform an action, but in very rare cases undo the action before rendering the frame.

How can I do that? What is the input handlers priority?

Is it possible to have priorities with doMethodLaters?

This is the “sort” parameter to taskMgr.add() and taskMgr.doMethodLater(). I believe it’s mentioned in the manual. You can see the sort values for existing tasks with “print taskMgr”.

David