Common Organization of Controls Kit
Common Organization of Controls Kit is a tool for handling control over your LÖVE games.
It enables you to easily define a (several of) set of controls to be used in your game, and provides a very user-friendly methods for handling it, specifically you can access all gathered data as a table member, and it has a function to grab a user input to store it into control map, and to unset it, which is really handy in controls setup screen etc.
Project page: http://raidho36.net/stuff/cock
Forum thread: http://love2d.org/forums/viewtopic.php?f=5&t=40089
This library have much detail to it, please consutlt the manual.