Keyboard with Arduino Leonardo pro-micro, a sketch with 5x5 matrix + 4 rotary encoder ec11

Job ID: 31609963

Budget: €8 – €10 EUR

I need a sketch for Arduino Leonardo pro-micro that will make me a keyboard with 5 rows and 5 columns
The functions to use will be a key or a combination of key like copy and paste, example below:

Keyboard.press('v');
delay(100);
Keyboard.releaseAll();

The input should be pullup, so I don't want use resistors (INPUT_PULLUP)
The ROWS PIN will be: 1,0,2,3,4
The COLUMNS PIN will be: 5,6,7,8,9

Pin for rotary 21-20, 19-18, 15-14, 16-10

The out should be one, example if I press and hold a button it give one command out, if I release nothing happens untill I press again a button.

Attached is a one button not in grid code, but I need a grid, so take it like an example.