It is not enough to plead a complaint to which there might be a federal defense. You need to allege a cause of action that derives from federal law.
Well-pleaded complaint: subject matter jurisdiction has to be present in the complaint, so we can make our jurisdictional analysis up front, rather than wasting time and then deciding later.
In state court you can often get the court to agree upon motion to reopen a case that they've recently closed.