title: Jquery UI autocomplete designing
body: <p>I referred <a href="https://stackoverflow.com/questions/39127815/jquery-autocomplete-cant-apply-style-on-the-focused-item">this</a> and few more.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(document).ready(function() {
  
  
    var availableTags = [
      "ActionScript",
      "AppleScript",
      "Asp",
      "BASIC",
      "C",
      "C++",
      "Clojure",
      "COBOL",
      "ColdFusion",
      "Erlang",
      "Fortran",
      "Groovy",
      "Haskell",
      "Java",
      "JavaScript",
      "Lisp",
      "Perl",
      "PHP",
      "Python",
      "Ruby",
      "Scala",
      "Scheme"
    ];
    $("#suggestions").autocomplete({
      source: availableTags
    });
  
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>html, body { height: 100%; width: 100%;  }
  
  #suggestions{
    width:50%;
    height:4vh;
    margin: 25% 0 0 30%;
  }
  
  .ui-menu .ui-menu-item:hover, .ui-state-hover, .ui-widget-content .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus {
      background-color: red;
      font-weight: bold;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;head&gt;
          &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"&gt;&lt;/script&gt;
          &lt;script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"&gt;&lt;/script&gt;
          &lt;link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"&gt;
  &lt;/head&gt;
  
  
      &lt;body&gt;
          &lt;div id="searchDiv"&gt;
              &lt;label for="suggestions"&gt;&lt;/label&gt;
              &lt;input list="suggestionInput" id="suggestions" name="ice-cream-choice" /&gt;
          &lt;/div&gt;
      &lt;/body&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>Reproducing the issue:</p>
  <ol>
  <li>Type a</li>
  <li>Hover mouse on one <code>li</code> item in the suggestion</li>
  <li>Move down using arrow keys</li>
  </ol>
  <p>It's showing wrong item on red color.</p>
  <p>Question: How do I make this work on in case of arrow and mouse keys?</p>