Currently, shortcut keys that load a different page (e.g. load the page in edit mode) use URL literals which are generated from velocity. We should bind shortcut keys to their corresponding UI components. Precisely, the URLs should be taken from the corresponding HTML elements. This will ensure that the shortcut keys work only when the corresponding HTML element are present. We shouldn't provide shortcut keys for something that is not accessible from the UI.
XWIKI-5596 Improve support for portlet integration in velocity templates