How to map keys to gamepad buttons on VICE

I don’t find a way to map “F1” or other keys from the C64 to my Shield TV controller. In the core config there’s a option to asign retrokeys to buttons, but I can’t make it work. Is there some file i must create firts, or one to edit that I’m missing?

I’ve connected a wireless keyboard to my STV, but the keys I touch are not seen by the emulated C64, just RA frontend saw it. Is there a setting that i can make the “C64” see my key presses?