Hi @Anonymous
A web search on "How to Press Enter Key Programmatically in Javascript" gives a bunch of links. You can see which one is suitable in your scenario.
Can you also share what exactly are you trying to do, possibly with screenshots, so that anyone can share an alternative solution for you.
Also hope you have tried the Sendkeys action of PAD and its of no use to you and hence want to try javascript.