Non si posso simulare i tasti funzione in js.