Key Input

Implemented a framework for catching key presses. I have applied a
filter to the keys message loop to obtain KeyDown and KeyUp events.