Listening to obsidian commands

Is it possible, within a plugin, to associate a listener to the event of an obsidian command? For example, whenever the command ‘app:go-forward’ is called, your plugin executes some actions? If so, how?