[keys] Use keys.js to determine state transition.