Hello thijsgalen :welcome: to the forums!
You can do that by simulating mouse clicks.... I dont know exactly how you can do that but after simulating the mouse click you can assign the key to a real switch with a USB joystik card and its really easy and cheap :thumbup: