Fix rare crash where movement key is set to a mouse button.