Is there a way either interactively or via api's query a key sequence? i.e. "let me type some key sequence" and "tell me what command this is mapped to"?
I am coming from emacs and I often use the "describe-key-briefly" command to see what a key sequence does. It is a quick way to learn the editor.