How do I make a player jump event triggered by a button press?

I want to have a jump action when I press a button on the keyboard like C for example
with these particular features

-Prevent them from jumping over certain tiles
-When not moving jumps in mid-air and only when moving, jumps in the direction they're moving in (not sure if it's possible)

I've looked online and I can't find any help with this
Hi there!
I'm the phone, if not, I will send you links.
But Galv and Yanfly have Jump plugins. Don't know about galv, but I remember yanfly can do that.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-make-a-player-jump-event-triggered-by-a-button-press.115048/