I know that the Apple Wireless Keyboard works perfectly with the iPhone and iPad, so I'm guessing that a USB keyboard can be paired and work as expected.
There is an app available for the Mac called Type2Phone which will allow you to use your Mac KB to type on your iPad/iPhone. It works well. Don't know whether there is a Windows version.