My 2008 MacBook Pro used to (when running Mavericks or earlier) regularly lose access to the trackpad & keyboard. So I keep a mouse & BT keyboard with it. But since installing Yosemite & later El Capitan, the problem hasn’t occurred again.