#define KEY(x, y) (y-1)*8+x
#define KEY_MENU -1
#define KEY_EXIT -1
#define KEY_EXE KEY(0, 6)
#define KEY_AC -1
#define KEY_DEL -1
#define KEY_OPTN -1
#define KEY_VARS -1

#define KEY_0 KEY(0, 3)
#define KEY_1 KEY(1, 3)
#define KEY_2 KEY(1, 4)
#define KEY_3 KEY(1, 5)
#define KEY_4 KEY(2, 3)
#define KEY_5 KEY(2, 4)
#define KEY_6 KEY(2, 5)
#define KEY_7 KEY(3, 3)
#define KEY_8 KEY(3, 4)
#define KEY_9 KEY(3, 5)

#define KEY_A -1
#define KEY_B -1
#define KEY_C -1
#define KEY_D -1
#define KEY_E -1
#define KEY_F -1
#define KEY_G -1
#define KEY_H -1
#define KEY_I -1
#define KEY_J -1
#define KEY_K -1
#define KEY_L -1
#define KEY_M -1
#define KEY_N -1
#define KEY_O -1
#define KEY_P -1
#define KEY_Q -1
#define KEY_R -1
#define KEY_S -1
#define KEY_T -1
#define KEY_U -1
#define KEY_V -1
#define KEY_W -1
#define KEY_X -1
#define KEY_Y -1
#define KEY_Z -1

#define KEY_F1 -1
#define KEY_F2 -1
#define KEY_F3 -1
#define KEY_F4 -1
#define KEY_F5 -1
#define KEY_F6 -1

#define KEY_UP KEY(3, 7)
#define KEY_DOWN KEY(0, 7)
#define KEY_LEFT KEY(1, 7)
#define KEY_RIGHT KEY(2, 7)

#define KEY_SHIFT -1
