How to know the keys pressed in Sublime Text 3

In sublime Text 3, sometimes a shortcut doesn't work because the key is not well inteprated. To know what is typed and how to change the shortcut:

Open the console

CTRL+`

Then type

sublime.log_input(True)
sublime.log_commands(True)

Everything you type is now logged and you can modify your shortcuts