TernJS key mappings