you need to explain the game situation a bit more. There are several possible solutions, but they depend on the details because they have different advantages and disadvantages.
Would the Button option on page 4 of the condition branch tab work for what you want?
it is a technical difference, that needs some programming knowledge to understand - but it is a true limitation (not only in RM but in all programming languages)
There is of course a script call "move that object now". and (because moving needs time) there is a way to check if an object is currently moving (after the passability was allowed).
But giving a command "move that now" by script call is not the same as detecting that something else (like a key press) gave that command.
And if a passabiliy is blocked, then there is nothing to detect that the player tried to move, because the functions like ismoving or isjumping are commands that return a value based on flags that are set when the move has been approved. If there is no move, then those flags don't exist and the return is simply false, without you being able to see any difference between "no command given" or "command has been blocked by passability".
And those flags only work because the move takes time in the main game loop, if there is a try to move and that move is blocked, that time (and the flags) do not exist.
So the game cannot remember that the player tried to move and was blocked without the function handling the move and checking the passability placing a signal flag about that somewhere (in which case you would have to decide how long that flag stays, which might cause a lot of timing problems) or calling a function (like reserving a common event) to do something in the very frame the move was blocked (which is what I recommended above). But modifications to existing functions need to be done by plugin.
So in short: you can command a move, but you cannot check if a move command from a different source was aborted, not without implementing such a check by plugin.
Im sorry if you explained this already, im still slowly processing all thats been said, its alot of new stuff to take in. But just to be sure. What im gathering is that the string that results in the player either moving or not would appear to be something like this: ''Gets command to move left> checks if player is allowed to move, or if there is something in the way>moves, or not, depending on previous.''
And if it works somewhat like this, id be looking not to command the player to move left through a script call, but to let a conditional branch respond on whether that command was given or not.
Perhaps - your description is a bit strange. But yes, you need the javascript equivalent of a conditional branch inside the engine where the move commands are handled (to be exact, the branch already exists there and only needs to be expanded with a few more commands).
And because it needs to be inside the engine, it can't be a script call but needs to be a plugin.
Just go to plugin requests, give a full description of what you want and request a plugin for that.
It might be that some plugin already exist, I don't know - but it can't be done without a plugin.