YouTube is your best friend for the first half of that question, You just connect buttons with wires to an Arduino and it can talk to your pc via DCS bios.

 

FAQ Answer Courtesy of L.Walker