Remove/Give item upon Vehicle enter/exit

For a game I'm making, there's a key item that transfer a player to a bonus map. However the player can use this item when on a vehicle, causing the player to be stuck in the vehicle when transferred to the bonus map. Is there a way to remove a specific item, especially a key item, from the player when entering a vehicle and giving it back when exiting the vehicle?
I assume you have a common event attached to the item?

Simply add a conditional branch in the common event so that it only runs the commands if the player is NOT in a vehicle.
I assume you have a common event attached to the item?

Simply add a conditional branch in the common event so that it only runs the commands if the player is NOT in a vehicle.
Thank you again Shaz!

I had another (longer) method after posting where a parallel process checked if the player is on/off a vehicle and removes/gives the item.

But your method is much better, thank you very much!
Oh!  Nice call, Shaz.  I was about to suggest a totally different solution - yours is better.

Original thread: https://forums.rpgmakerweb.com/threads/remove-give-item-upon-vehicle-enter-exit.47459/