And being one-handed isn't that bad with a computer anyway. You can type one-handed (I do it on occasion for short bursts), and you can adopt one of the one-handed Dvorak keyboard layouts. It's obviously not as fast as regular two-handed typing, but it's not bad.
Also, there's different things you can do to your arm that require a sling. I didn't require a cast for my injury, but even if I did, the sling's purpose is mainly to keep your arm in a neutral position, keep you from bearing weight with it, and keep your upper arm from having to deal with the weight of the cast. It doesn't completely immobilize you; you can usually still rotate your arm enough to use a keyboard. Obviously, though, this depends on your exact injury and what's been done to your arm.
That was not at all my experience when I had my arm in a sling; I was basically one step above being one-handed.