shiftDown doesn't seem to be being used here. Should there be a check somewhere?

The spacing looks off here as well - Check your tabs vs. spaces usage. Seems like a disconnect between editors.