volatile static char *ciaa_sdr = (volatile char*) 0xbfec01; // any key is down if (ciaa_sdr & 0x1) { printf("any key is down\n"); }