How to use the same shortcut multiple times in one application?

I have an application that consists of a tabsheet with various tabs. There are some input fields on each of the tabs and I would like to bind the Enter/Return key to the button for inputting these fields in each of the tabs. However, Button.setClickShortcut creates a global shortcut, so it doesn’t behave the way I want it to.
How can I do this? I suspect I’ll need ShortcutAction, but I can’t figure out how to use it.

You need to scope the shortcuts inside the tabs by using an extra Panel. See the sample:

Basically you can only attach key shortcuts to either windows or panels.