Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

98
Views
Javascript to capture input from a Firestick controller and turn a single button press into two different button presses

I need html / javascript that will capture the input of a Firestick controller and have it do something else. Specifically I need the "Play/Pause" on the controller aka "Next" on the soft keyboard to minimize the keyboard. Since there is no Key ID for the "Back" button, I would like to have the click of next make the selector go left once then press enter.

So far I have the below but this just reloads the page. When I hit next.

Please be aware javascript is new to me so if you assist, please know I know nothing (John Snow) :-)

<script>
function checkKey(e){
    if(e.keyCode == 179) {
        //Play-Pause Button
e.key = "37";
e.key = "13";
    }
}
  </script>

//Later in the form brackets

<form action="#" onkeydown="checkKey(event);" id="custom-data" _lpchecked="1">
onkeydown="checkKey(event);"

https://developer.amazon.com/docs/fire-tv/supporting-controllers-in-web-apps.html

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!