ToolsKeycode InfoPress a key to see its code, key and modifier state.Press any key Waiting for a key…