Just make sure that they are really dead and just not in need of a new battery before you throw them away.
And gear today is different but not always necessarily better. I love guitars as well and each always has its own character. Keyboards while being silicon and plastic still have a unique appeal and can always be used to contribute towards making good music.
I still use an old Roland JX8P and there are many sounds that it can make that outclass even the most cutting edge synths.