First attempt on keys.c