Wasd Detection/NBT/Tag Detection

So, I'm using animated java to make a model of a pirate ship I made appear in game, and I need tome way to select just the ship individually. I know it uses block displays, but idk what nbt data or tag is unique for it. I also want to set up WASD detection for the data pack so that I can make the ship move in a direction. I know that that's an advanced topic. Also just a side note im in 1.21 Any help received is greatly appreciated!
Continue to help post