Checking for Player Movement?

Hello, what I am trying to do is check if the player is moving or not.
Yet I do not know how.
I have tried searching for this, and the closest I could find was Input.dir4, but the problem I found with this was the player could tap the button to pass by the check.

Anyone know how to do this? Or do I need a plugin?
$gamePlayer.isMoving()
Alright, thanks. Wow I feel dumb
Was having a bit of trouble getting it to work.
But I figured it out now.
So you can close this now mods.
To have a thread closed, you should report your first post and ask in there for the mods to close it. They don't go looking through all the threads for "you can close this now" comments.

Original thread: https://forums.rpgmakerweb.com/threads/checking-for-player-movement.94847/