Read / write hardwares values for FSUIPC (module for FS)
Forget about the ATMega88 and pick a part that has USB, such as an ATMega16U4. Use HID and enumerate it as a joystick what sufficient buttons. Make each button a button, and two buttons per rotary encoder. Then use FSUIPC to assign button presses to the actual key commands.