game.keyreleased = function(character, key, scancode) if scancode == button.a then character.actionA = false end if scancode == button.left then character.actionLeft = false end if scancode == button.right then character.actionRight = false end if scancode == button.up then character.actionUp = false end if scancode == button.down then character.actionDown = false end if scancode == button.b then character.actionB = false end if scancode == button.a then character.actionA = false if character.jump.velocity ~= 0 then character.jump.limitButtonJump = true end end end