Free some pointers in KEY_UP and KEY_DOWN