No, you cannot use a keyboard and mouse to play Minecraft on the Nintendo Switch. Although the console supports USB keyboard input, it cannot be used to play games and is only limited to typing. Some third-party adapters may be able to bypass this limitation, however.