Added some input code that attempts to incporate physics, not quite
working right yet.