(Almost) Complete Key Events

- Callbacks for key presses, key releases, and frames where the key is
down can now be registered from script.
- No way to register for key up events, simply because I'm not sure how
to implement that.