run event during message

I want to trigger a specific event when I press a button in a specific message while the message is being displayed.
For example, in Ace Attorney, when a character speaks a certain word, player presses the Q key, then the character shouts "Objection!". I want to make system like that.
Could it be possible to do this within basic RMMV? Or do I have to do it with some scripts?

(Translated with Google Translator, there may be errors)

Original thread: https://forums.rpgmakerweb.com/threads/run-event-during-message.140229/