@paul.k.pallaghy an update on this post - we’ve added support for keys in anvil click event
def link_click(self, **event_args):
print(event_args['keys']['meta'])
That should work for Link
and Button
components and should make the implementation above slightly easier.