Yeah but there are solutions. After years of being vulnerable to water the iphones are now waterproof. Cars have had engine electronics in boxes with wax in for decades. The cheapest stuff you buy in supermarkets comes in waterproof packaging.
I'll give you that keyboards are hard but my thinkpad had a good keyboard with a drip tray and drainage hole.
Here's one on Amazon with good reviews https://www.amazon.co.uk/Keyboard-Waterproof-Ultra-Compact-P...