You need a white key to pass through a white gate. For each time to pass a white gate, you need to collect another white key. Keys are unaffected by gravity and block enemies. Extra keys of a single color are only worth more points.