add sandbox toggle to keys.js
breakout tests (issue #2)