Manipulating Mobile phone or windows phones to serve as an input device to your desktop applications.

How do you manipulate a mobile or any windows phone keypad as an input device.. Which enables you the ability to you use the keypad instead of the keyboard to type on your desktop applications... such as microsoft word, word pad..etc