spacebarnotworking
spacebarnotworkingpleasehelp
iMac (27-inch Late 2009), OS X Yosemite (10.10.5)
spacebarnotworkingpleasehelp
iMac (27-inch Late 2009), OS X Yosemite (10.10.5)
Try resetting the SMC Resetting the System Management Controller (SMC) on your Mac - Apple Support
Other than that I can only suggest replacing the keyboard.
spacebarnotworking