Demo of how you can mod Raycast's Detail component to accept keyboard or mouse input using a JXA child processes.
The mouse input example is a bit more complex. It uses a dynamically generated SVG to provide an iterative UI.
The JXA scripts is in the assets folder.