If you are looking to control your router instead, Jamie has managed to get logic folded into the main Marlin project that allows a joystick to be used. See this topic. In addition, several people on this forum have implemented pendants that allow you to control many aspects of your machine. Here is one example on Thingiverse.