Show sourcecode
The following files exists in this folder. Click to view.
index.js
12 lines ASCII Windows (CRLF)
document.addEventListener("keydown", register);
const actions = {};
const startTime = Date.now();
document.getElementById("actions").value = "";
function register(key) {
actions[Date.now() - startTime] = key.key;
// console.log(actions);
document.getElementById("actions").value += Date.now() - startTime + ":" + key.key + ",";
console.log(document.getElementById("actions").value);
}