Deselect all parts when tools are switched.
Send mouse messages when clicking on the card where no parts are, and pointer messages when the pointer tool is active.