Hello Parmeshta,
It sounds like your keyboard and trackpad will both become unresponsive at the same time every few days. I recommend resetting your SMC, then your PRAM and retesting the issue:
Intel-based Macs: Resetting the System Management Controller (SMC)
http://support.apple.com/kb/HT3964
- Shut down the computer.
- Plug in the MagSafe power adapter to a power source, connecting it to the Mac if its not already connected.
- On the built-in keyboard, press the (left side) Shift-Control-Option keys and the power button at the same time.
- Release all the keys and the power button at the same time.
- Press the power button to turn on the computer.
Note: The LED on the MagSafe power adapter may change states or temporarily turn off when you reset the SMC.
Then reset the PRAM:
OS X Mavericks: Reset your computer’s PRAM
http://support.apple.com/kb/ph14222
- Shut down your Mac.
- Locate the following keys on the keyboard: Option, Command (⌘), P, and R. You will need to hold these keys down simultaneously in step 4.
- Turn on your Mac.
- Immediately press and hold the Option-Command-P-R keys. You must press this key combination before the gray screen appears.Continue holding the keys down until your Mac restarts, and you hear the startup sound for the second time.
- Release the keys.
Resetting PRAM may change some system settings and preferences. Use System Preferences to restore your settings.
Thank you for using Apple Support Communities.
Regards,
Sterling