Add function keyIsDown to simplify love.update