When I broke my clavicle, I rigged up a second keyboard that I could use with my arm in a sling: https://live-fts.flickr.com/photos/lancefisher/4293591069/in...
It worked really well! The biggest downside was that I had to use modifier keys on the same keyboard as the key I was modifying. e.g. right shift and l to get a capital L.