Electrical lug for button switch
Something like this.

The loop in the wire keeps it from pulling out.

You can even fold the wire more than once.

Use the end of a screwdriver blade to fold the ears over the wire.

Crimp down using pliers.

Note: solid wire will not withstand continued stress from being moved repeatedly.