Not necessarily, yvanleterrible, the keyboard has circuit boards in it too.
A lot of modern stuff is, usually, a lot less moisture sensitive than you'd probably think, it's the combo of water and electricity that is ... a 'not good' thing.
It really depends a
lot on the construction of the individual keyboard. If it uses epoxy circuit boards, and the key/contact/spring mechanism isn't sensitive to moisture, it'll probably come through fine, in the absence of electricity, of course.
A USB card would probably survive a dunking just fine, as long as it wasn't powered up at the time, and it wasn't re-connected until it dried thoroughly. They're mostly epoxy boards, and most components aren't too moisture sensitive these days.
For those old switchboards, for example: if I remember rightly, they just hosed 'em out, let em dry and replaced a few vacuum tubes and put 'em back in service.
On the other hand ... I really,
really don't recommend that anyone dunk electronic parts just to see what happens.