Allow keyboard movement if a flag is on