How to check for keyboard input?

I want to have the option of skipping cutscenes if I press a button, how can I do it? Additionally, how should I do it if I want to skip the cutscene using any button?

Speaking of cutscenes, is there a reliable way of skipping an actual movie event at any point you want?
there are plugins for it, some are paid, some are free, some event it.

as for the video, a plugin is required. search for skip plugins.
You should probably adjust your title since this is about skipping a cutscene moreso than detecting input.

To answer your title question:
Conditional branches on page 4 have a selection for "button".
Selecting this option and setting a button will have the conditional check if the button is being pushed down.

You can set up a parallel event to monitor for the button press. However, contrary to what ShadowDragon said, I am not sure how you would event a skip cutscene event in any seamless sort of way since you can't directly have one event interact with another. Maybe you could set up a conditional checking for a switch the cutscene would constantly have to jump back to the conditional to check that switch.
You can also use scripting to set a "jump to" command to be a variable string, but once again, you'd need the cutscene to constantly check if it needs to "jump to" the end of the cutscene.

I would recommend a skip cutscene plugin. I don't know any off the top of my head, but I am sure a simple google search for any combination of these key words would work: "RPG Maker MZ plugin cutscene skip"
I have figured out the way to do it without having to install any plugins. However, I'd like to know what the script would be for keyboard input except any key works, nothing very specific
I have figured out the way to do it without having to install any plugins. However, I'd like to know what the script would be for keyboard input except any key works, nothing very specific
Input.isPressed('ok')

If you want it to be a keyboard key that's not premapped by the engine you need to use the script for example

Input.keyMapper[65] = 'a';

Then you can do
Input.isPressed('a')

You would have to look up the keyboard code for the letter you want.

I also helped someone come up with a cutscene skip mechanic here
Post in thread 'Skip part of the event?' https://forums.rpgmakerweb.com/index.php?threads/skip-part-of-the-event.171791/post-1469376

Original thread: https://forums.rpgmakerweb.com/threads/how-to-check-for-keyboard-input.174670/