chromium/third_party/blink/web_tests/fast/forms/password/password-alt-f8.html

<input type="password" id="passwd">

<script>
    // This verifies pressing hotkey Alt-F8 once can reveal reveal the password.
    document.getElementById("passwd").focus();
    eventSender.keyDown('a');
    eventSender.keyDown('F8', ['altKey']);
</script>