My code isn't working, can someone please help

Change all your INPUT to INPUT_PULLUP in the pinMode() calls...
Delete the digitalWrite() calls that immediately follow them. That is an obsolete way of enabling INPUT_PULLUP and probably won't work on a 23U4 processor.

Like:

pinMode(Key3, INPUT_PULLUP);
pinMode(Key12, INPUT_PULLUP);

If that doesn't work, double check your wiring.