Can I use keyboard switches with Arduino to make a custom GameCube controller?

Can I use keyboard switches with Arduino to make a custom GameCube controller?

Thank you!

(Have Googled this but could not find definite confirmation.)

What kind of keyboard? There's dozens of different kinds of keyboards.

In the Arduino Playground Input section

https://playground.arduino.cc/Main/InterfacingWithHardware/#InputTOC

Use Find or your eyes to look for the different PS2Keyboard projects.

Upshot is that cheap PS2 keyboards (and mice) can be connected directly to Arduino pins and used.

https://www.walmart.com/c/kp/ps2-keyboards

The Logitech KB&mouse set is now almost $14, was $12 a few years ago.