How to find the key code for a specific key

Just googled and result

function displayunicode(e) {
  var unicode = e.keyCode ? e.keyCode : e.charCode;
  console.log(unicode);
}
<form>
  <input type="text" size="2" maxlength="1" onkeyup="displayunicode(event); this.select()" />
</form>

As in, what keyboard events reports based on what keys are pressed

  $("#textinput").keydown(function(e) {
    e.keyCode; // this value
  });

Try Here for all the key Events and These are the mobile key Events


    $(function () {
      $(document).keyup(function (e) {
         console.log(e.keyCode);
      });
    });
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>

Here's your online tool.