demo correct use of KEY_EXIT