diff --git a/src/systems/userinput/userinput.js b/src/systems/userinput/userinput.js
index f380ad216afc6d909ec59f719654210e7baab833..7a397a187c4c1cd92ff8005d954cd3c378f02b53 100644
--- a/src/systems/userinput/userinput.js
+++ b/src/systems/userinput/userinput.js
@@ -26,8 +26,8 @@ import { GamepadDevice } from "./devices/gamepad";
 import { gamepadBindings } from "./bindings/generic-gamepad";
 
 function intersection(setA, setB) {
-  var _intersection = new Set();
-  for (var elem of setB) {
+  const _intersection = new Set();
+  for (const elem of setB) {
     if (setA.has(elem)) {
       _intersection.add(elem);
     }