JavaScript can not be running two functions at the same time. Once a function is entered, it will continue through it until it returns. There is no way to interrupt it unless the function itself returns early (like if you used a if statement to check a exit early condition).
So something you might be looking for is a variable that you can set on the fly that the functions check to see if they are allowed to do their thing. Something like:
var canMoveLeft = true;
Just check for that var in your do_move_left() function before you do anything and return early if the test fails.