Any momentary (non-latching) button will work, but those two probably aren't the best choices.
The first one is going to be hard to mount -- designed to snap into a square hole in a metal or plastic panel.
- If you can 3d print a panel for them to snap into, they might be a decent choice.
The second one is small (12x12mm plunger), hard to press, and low-quality switch contacts.
-----------
Sanwa OBSF-24KK buttons like
these are
much higher quality, but they are square body snap-in mounts.
There are some illuminated pushbuttons like the 26x26mm ones
here that would be a good choice.
- Even if you don't light them, they would also allow you to do custom printed inserts. (search for my posts containing "avery 18665")
Suzo-Happ makes
regular and
low-profile square buttons in various colors.
- Easy to mount in a wood panel.
- You can do printed inserts.
- It's usually a good idea to order from a reseller instead of direct from Suzo-Happ.
- You can probably find similar buttons on aliexpress.
If you want to light the buttons, use LEDs instead of the incandescent bulbs that usually come with the buttons.
- 5v from the encoder PCB will light the 12v wedge-base LEDs usually used with illuminated arcade buttons.
- A bulb draws too much current (500mA@5v?), each 5v LED draws about 20mA@5v, each 12v LED draws about 5.83mA@5v.
Scott