usb clutch pedal using a mega 2560 or uno is it possible

Hello,

I want to make a clutch pedal for a pc game so I can use my h-shifter.
At the moment I'm using a mouse button to press the clutch and this doesn't work so well because it is an off or on switch and it makes my engine stall a lot in first gear.

I have an Arduino mega 2560 and Uno that I'm not using at the moment and I'm wondering if one of these can be used for this project.

I have looked around online and on this forum and its not clear to me if its possible. I know the Leonardo would be perfect but then I have to buy a new card while I have these two already.

Thanks for the advice in advance.

Ray