Check Keyboard Press?

Hello everyone 😀
I'm currently trying to do a simple 4 movement for 2 players, and I'm currently having trouble to check button presses on a keyboard.

For example, I want 2 players to actually be WASD and the other would be the arrows, but I need the check to see if that player pushed WASD, then proceed to move that event.

Sorry I made a mess to the post, but I hope I can have help 😀

If someone has any questions, I'm open to answer them 😛
@Nefertari83 made a video tutorial on two-player movement and interaction - it is, however, in German (the maker is set to English, so you can still understand the event commands). She sets up and explains everything in RPG Maker VX Ace at first. The MV part starts around 22:55, and she goes through everything much more quickly there. (It's mostly the same in both makers, except for how the button presses are handled.)

If you want, have a look at the video and see how much you understand from it - the general idea is to have a Common Event running on Parallel Process, activated by a switch. It checks for WASD button presses and moves an event on the map accordingly (with a wait command to prevent lag). That map event has to exist and have the same ID on all maps where WASD movement for the second player is switched on. Another Parallel Process event on the map handles event activation by checking for Q button presses (the second player's "Enter" key) and tracking the movement of the event that acts as the second player character.

If what you're planning to do isn't too complex, I would try to go with an evented solution like this first. Otherwise, you could also look for a plugin, but after a quick search I haven't found one yet.
This is exactly what I needed, and I even learned some Javascript along the way, thank you! 😀

Original thread: https://forums.rpgmakerweb.com/threads/check-keyboard-press.74472/