game.keypressed = function(character, key, scancode, isrepeat) isrepeat = true if scancode == button.quit then love.event.quit() end if scancode == button.a then character.actionA = true character.actionDown = false character.actionUp = false end if scancode == button.left then character.actionLeft = true end if scancode == button.right then character.actionRight = true end if scancode == button.up and character.jump.isJumping == false then character.actionUp = true end if scancode == button.down and character.jump.isJumping == false then character.actionDown = true end end