My dear friend, I'm seeking an Android tablet with Apple Pencil-like compatibility. Moreover, I desire the tablet to support software such as Keyboard Maestro, which would allow me to control the tablet using a keyboard and simulate mouse clicks on different parts of the screen.
Keyboard Maestro doesn't run on Android; it only works on macOS.
This search might help you find an automation tool for Android:
Every tablet supports using a stylus, so pick a tablet and get a stylus to go with it.