Manually map keys for tern