love.keyboard:isDown( key )
Usage
love.keyboard:isDown( key )Arguments
keyThe key in question.
Returns
booleanWhether the passed key is pressed down.
Examples
Example 1:
if love.keyboard:isDown(love.key_x) then
print("X is down!");
end