keypressed( key )
Usage
function keypressed( key ) ... end
Arguments
keyThe key code of the pressed key.
Returns
Nothing
Examples
Example 1:
function keypressed(key)
if key == love.key_enter then
print("Enter was pressed")
end
end