The OP is badly worded, the question isnt 'why are all keyboard players nerdy' but 'why are all nerds keyboard players'... at least thats how I read it. Like if you see a photo of a band and one looks a bit more geeky than the others you're pretty much guaranteed that he'll be on keys. I mean look at Dream Theater for example, you just know the nerdy one is on keyboards....
Oh, Dream Theater are probably a bad example.