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