Is there a keyword which allows you to get the ID of an assets parent?
Not a keyword, but you can implement an asset listing that looks 1 level up the tree, or use an API function like getLineage(). I believe the issue here is that an asset can have multiple parents so there isn't anything that could handle that properly if it was implemented as a keyword.
Yeh what Anthony suggests is correct