hi i'm currently in need of a quit option

i have something like for example click 2 for quit but i don't know how to make a command for it, could someone please help me

problem solved thanks alot !!

please mark as solved

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.