You can right click on a vault without a trial key and unless your hand is empty, it will actually interact properly with it, even though nothing else happens.
How to reproduce:
Find a vault or place one from the creative inventory or with commands.
Right click on the vault with an item other than a trial key.
Expected result:
Nothing would happen.
Observed result:
The player swings their hand as though some interaction with the block happened.
Cannot reproduce myself. Can you provide a video of the issue occuring using either OBS or Windows Game Bar?