Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
I have some experience with appending and removing to the keymap, but I don't know how to define the key behavior specifically for when these buttons are focused. Where should I look?
Isn't it the default behaviour? Ren'Py designed to be operated not only by mouse but by keyboard and joystick.
Check focus_up and focus_down in a keymap - https://www.renpy.org/doc/html/keymap.html#keymap
Well, you can try to left the keymap unchanged (the default one), create a screen with changes for key actions, and show this screen at the very begining of the game.