How To Program An input device With raspberry pi