There is probably software out there that can do what you want. But if you just need to press a button that is offscreen you can right click the titlebar of a window, select move and then use the cursor keys or mouse to move the window where you want.