I am generating a maze and am trying to add keyboard events to it. But keypress, keydown, keyup won\'t trigger.I have tried adding focus to the element but nothing hapened.