well, it really depends on what kind of keyboard it is. Some keyboards employ strange mechanics underneath each key, with all sorts of funky gizmos- essentially making placing the key back on impossible. Mostly, though, they easily pop off.
In fact, if the keyboard keycaps come off easy- that would be a workable solution too.