Yes, you can play your Switch 2 games with both mouse and keyboard. This is how you can turn your Switch 2 into a PC.