Which version/platform are you running?
It might be the keyboard software you're using. I know a few use older syntax for inputs that Python can have trouble with.
To check, you can look into your device's settings, then navigate to wherever your language settings are (input, language, general management or whatever seems right depending on your android version). Check what your default keyboard is set to. I'd recommend using Google's official keyboard GBoard since it's probably the most up-to-date when it comes to compatibility.
If you don't see GBoard as a list of keyboard options, you might have to download and install it from the Google Play store. Just search for "gboard", install, run, and set it as your default when given the option.
Then load the game, try again, and let me know how it goes :)