Map keys to touchscreen Not sure of this is a good question for here or stack overflow... I can move it if needed.

I'm running android on a mobile device... but I really just use it as a computer. I have a wireless mouse/keyboard that I use to navigate windows, etc. Keyboard works well generally, but I find some features lacking. I really would like to map key presses to the touch screen input. i.e. I can set w to send touch input from a part of the screen given by the pixel location or some such thing. 

I have a background in computer system, so I'm not afraid to get my hands dirty. I am willing to root the device, install programs, or build in some additional hardware. I can probably do it from scratch, but I really would like to not waste that much time on it.
If you are willing to use a PC as the interface.

There appears to exist a modified version of the open-source scrcpy which has keyboard shortcut support for playing games, but should partially map to your requirement:

QtScrcpy - gitee repo or QtScrcpy - github repo

See project README for keyboard mapping feature:
https://github.com/barry-ran/QtScrcpy/blob/master/README.md



It looks promising. Unfortunately I haven't used it, and while open source, most of the project UI/documentation isn't in English.

The issue thread for the keyboard mapping feature for scrcpy:

https://github.com/Genymobile/scrcpy/issues/712

you might want to look there for more options.