keypressed( key )
Usage
keypressed( key )
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