Added basic key-tracking functions, also started on collision-detecting.  I hate you, collisions.  Sugstobeyou.