Maybe have an if branch to see if the player is pressing left, right, up, or down then refresh the window to prevent lag? I would check out Ccoa's HUD tutorial on rpgrevolution, it has a solution to this. Don't have a link at the present time because I'm on my phone, I might be able to get one in a little bit though