It's completely situational to the game you're making. A question as general as "how should they be displayed in an RPG" is too broad, in my opinion, to produce a useful answer. The following are as broad as I feel you can get, but even these will have exceptions based on individual game mechanics:
- An entirely menu-driven game like early Final Fantasies could probably get away with simply including the controls in the manual and/or an option on the menu screen, since most of the controls would be familiar to any RPG player and even newbies could figure it out within a few seconds without being hurt by their initial ignorance.
- An action RPG needs a good tutorial that explains the controls or a lot of "introductory play space" (see this Design Club video for a great example), plus an in-game reference to the controls that can be checked at any time.
- A game that uses unusual controls for unusual functions (such as Tales of Symphonia's Sorcerer's Ring or Harry Potter's non-Flipendo spells) should have either a quick tutorial of the mechanic or - if the buttons can only be used at certain times - can instead be given to the player via onscreen prompts (e.g. "(X) - Use Ring" in the bottom-right of the screen).
- A minigame in an RPG should have the rules explained directly before playing the minigame and these controls probably shouldn't appear anywhere else in the game.
- A battle system where you use hotkeys instead of menus to input commands should have the button assignments right there onscreen along with the command icons/words, and explaining the controls in advance should probably be optional for the player.