You can use a mouse and keyboard with your phone. So just find a way to install windows on a phone and it should be fine Windows 10 is probably your best bet followed by some version of Linux (I'm not familiar enough to recommend one)
Cool idea, but playing anything the requires rapid mouse movement would be 10x harder. I'm imagining someone trying to play Getting Over It on that thing💀