The API love.keypressed isn't generated when using your script. I can only find references to the API in descriptions but not to the API itself thus it's not part of the api list.
I don't know why it's not generating it but it's currently not doing so for reasons beyond my comprehension.