My Yamaha Digital Piano was rarely played after it was purchased new. For years, it's been wrapped in plastic and stored under my bed (until last week) - always thinking it would get some use, but that never happened.
I think it's in great condition. It comes with the pedal.
It's plugged in and ready for you to play it. Here's some advice I saw on Reddit about how to evaluate a used keyboard/piano:
--- "Test every key for function and velocity, test for key noise with the unit off, try every jack you can--including the headphone jacks--and buttons to make sure they work, make sure the pedal works. Don't forget to test the speakers to make sure each one works."