Make moving while the cursor is locked do a legal move if there is one