Explain how your code is misbehaving…
When i pressing any Button(ArrowButtons) then
nothing happens.
// Paste your code here
document.addEventListener('keydown', sendKeyDown);
function sendKeyDown(event) {
var code = event.code;
if (code == 'ArrowLeft') avatar.position.x = avatar.position.x - 5;
if (code == 'ArrowRight') avatar.position.x = avatar.position.x + 5;
if (code == 'ArrowUp') avatar.position.x = avatar.position.z - 5;
if (code == 'ArrowDown') avatar.position.z = avatar.position.z + 5;
}
Include any more information that you like here...
I am using The Google Chrome WebBrowser and i am confused.