Converting push-button events to keyboard events in the Raspberry Pi

from blog Kevin Boone's website, | ↗ original
The Raspberry Pi has a bunch of GPIO pins we can use to connect push-buttons. But how do we interface push-buttons to an application that expects only keyboard input?