An API for determining when a button is pressed, released, held, or pressed and released.