Moved key codes out of the keyboard input system file. Added ray casting to the physics engine.

The physics engine is now finished. I'll be rewriting it once i'm done
with the current game project. A lot of the algorithms work great, and
i'll reuse them, but the physics pipeline is horrible and needs a
complete change, i also need to work on optimising other libraries like
the event library and that will require rewrites too.